Udostępnij za pośrednictwem


Metoda XmlSchemaCollection.Grant (ObjectPermissionSet, array<String[], Boolean)

Dotacje dostęp do określonych uprawnień i możliwości udzielenia dostępu do innych zastosowań stypendystów określonej kolekcja schematu XML.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Sub Grant ( _
    permission As ObjectPermissionSet, _
    granteeNames As String(), _
    grantGrant As Boolean _
)
'Użycie
Dim instance As XmlSchemaCollection
Dim permission As ObjectPermissionSet
Dim granteeNames As String()
Dim grantGrant As Boolean

instance.Grant(permission, granteeNames, _
    grantGrant)
public void Grant(
    ObjectPermissionSet permission,
    string[] granteeNames,
    bool grantGrant
)
public:
virtual void Grant(
    ObjectPermissionSet^ permission, 
    array<String^>^ granteeNames, 
    bool grantGrant
) sealed
abstract Grant : 
        permission:ObjectPermissionSet * 
        granteeNames:string[] * 
        grantGrant:bool -> unit 
override Grant : 
        permission:ObjectPermissionSet * 
        granteeNames:string[] * 
        grantGrant:bool -> unit 
public final function Grant(
    permission : ObjectPermissionSet, 
    granteeNames : String[], 
    grantGrant : boolean
)

Parametry

  • granteeNames
    Typ: array<System.String[]
    A String tablicy, która określa listę stypendystów, aby odmówić dostępu do zestaw uprawnień.
  • grantGrant
    Typ: System.Boolean
    A Boolean właściwość, która określa, czy grantee jest możliwość udzielenia określonego zestaw uprawnień innych użytkowników kolekcja schematu XML.
    Jeśli True, grantee jest możliwość udzielenia określonego zestaw uprawnień innych użytkowników kolekcja schematu XML.
    Jeśli FAŁSZ, grantee nie jest przyznawany przydzielać określonego zestaw uprawnień innych użytkowników kolekcja schematu XML.

Implementacje

IObjectPermission.Grant(ObjectPermissionSet, array<String[], Boolean)