Workspace.EffectivePermissions Property
This field is populated only when it sends this Workspace over the wire back to the client.
It contains the effective WorkspacePermissions of the user who called the relevant webmethod: CreateWorkspace, UpdateWorkspace, QueryWorkspace, QueryWorkspaces.
This field is populated by using the static method Workspace.PopulateEffectivePermissionsForUser.
It should not be relied upon for security evaluation except immediately after populating the value with PopulateEffectivePermissionsForUser. Otherwise, use one of HasWorkspacePermission or CheckWorkspacePermission on the SecurityManager.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
<ClientPropertyAttribute(ClientVisibility.Private, ClientVisibility.Private, PropertyName := "EffectivePermissions", _
Direction := ClientPropertySerialization.ServerToClientOnly)> _
Public Property EffectivePermissions As Integer
[ClientPropertyAttribute(ClientVisibility.Private, ClientVisibility.Private, PropertyName = "EffectivePermissions",
Direction = ClientPropertySerialization.ServerToClientOnly)]
public int EffectivePermissions { get; set; }
[ClientPropertyAttribute(ClientVisibility::Private, ClientVisibility::Private, PropertyName = L"EffectivePermissions",
Direction = ClientPropertySerialization::ServerToClientOnly)]
public:
property int EffectivePermissions {
int get ();
void set (int value);
}
[<ClientPropertyAttribute(ClientVisibility.Private, ClientVisibility.Private, PropertyName = "EffectivePermissions",
Direction = ClientPropertySerialization.ServerToClientOnly)>]
member EffectivePermissions : int with get, set
function get EffectivePermissions () : int
function set EffectivePermissions (value : int)
Property Value
Type: System.Int32
Returns Int32.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.