Share via


SecurityNamespace.HasWritePermission Method (String, IEnumerable<Int32>)

Checks whether the current user has authority to write the specified permissions.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public MustOverride Function HasWritePermission ( _
    token As String, _
    permissionsToChange As IEnumerable(Of Integer) _
) As Collection(Of Boolean)
public abstract Collection<bool> HasWritePermission(
    string token,
    IEnumerable<int> permissionsToChange
)
public:
virtual Collection<bool>^ HasWritePermission(
    String^ token, 
    IEnumerable<int>^ permissionsToChange
) abstract
abstract HasWritePermission : 
        token:string * 
        permissionsToChange:IEnumerable<int> -> Collection<bool> 
public abstract function HasWritePermission(
    token : String, 
    permissionsToChange : IEnumerable<int>
) : Collection<boolean>

Parameters

  • token
    Type: System.String

    The token for which to check write permissions.

Return Value

Type: System.Collections.ObjectModel.Collection<Boolean>
A collection of results for the respective checks. True if the current user has the authority to change the specified permissions bits; otherwise, false.

.NET Framework Security

See Also

Reference

SecurityNamespace Class

HasWritePermission Overload

Microsoft.TeamFoundation.Framework.Client Namespace