Click or drag to resize

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: 2023.2.258.5793
Syntax
public static string ToServerCompatibleString(
	this EntryType type
)

Parameters

type
Type: Perforce.P4EntryType

Return Value

Type: String

Usage 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(); // returns "user"
string groupEntry = EntryType.Group.ToServerCompatibleString(); // returns "group"
See Also