ProtectionEntryExtensionsToServerCompatibleString Method (EntryType)
|
Extension method which returns a string presentation of protection entry type,
which can be recognized by the server
e.g. User is translated to "user" and Group to "group".
These are server compatible entry type representations
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.2.269.3570
Syntaxpublic static string ToServerCompatibleString(
this EntryType type
)
<ExtensionAttribute>
Public Shared Function ToServerCompatibleString (
type As EntryType
) As String
public:
[ExtensionAttribute]
static String^ ToServerCompatibleString(
EntryType type
)
[<ExtensionAttribute>]
static member ToServerCompatibleString :
type : EntryType -> string
Parameters
- type
- Type: Perforce.P4EntryType
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
EntryType. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Examples
To get string representation of protection entry type
string userEntry = EntryType.User.ToServerCompatibleString();
string groupEntry = EntryType.Group.ToServerCompatibleString();
See Also