PermissionInfo-Klasse
The PermissionInfo class represents information regarding granted or denied privileges.
Vererbungshierarchie
System.Object
Microsoft.SqlServer.Management.Smo.PermissionInfo
Microsoft.SqlServer.Management.Smo.DatabasePermissionInfo
Microsoft.SqlServer.Management.Smo.ObjectPermissionInfo
Microsoft.SqlServer.Management.Smo.ServerPermissionInfo
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Class PermissionInfo
'Usage
Dim instance As PermissionInfo
public class PermissionInfo
public ref class PermissionInfo
type PermissionInfo = class end
public class PermissionInfo
Der PermissionInfo-Typ macht folgende Elemente verfügbar.
Eigenschaften
Name | Beschreibung | |
---|---|---|
ColumnName | Gets the name of the column that has permissions granted or denied. | |
Grantee | Gets the name of the database user, logon, or database role who has been granted or denied access to the object. | |
GranteeType | Gets the type of grantee. | |
Grantor | Gets the name of the database user, logon, or database role who granted or denied access to the object. | |
GrantorType | Gets the type of grantor. | |
ObjectClass | Gets the object class for the object to which permissions have been granted or denied. | |
ObjectID | Gets the ID value that uniquely identifies the object to which the permission applies. | |
ObjectName | Gets the name of the object to which the permission applies. | |
ObjectSchema | Gets the schema of the object to which the permission applies. | |
PermissionState | Gets the permission state of the object to which the permission applies, such as whether the permission is granted, denied, granted with grant, or revoked. | |
PermissionTypeInternal | Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
Equals | (Geerbt von Object.) | |
Finalize | (Geerbt von Object.) | |
GetHashCode | (Geerbt von Object.) | |
GetType | (Geerbt von Object.) | |
MemberwiseClone | (Geerbt von Object.) | |
ToString | Returns the object as a String value. (Überschreibt Object.ToString().) |
Zum Anfang
Hinweise
The PermissionInfo object is returned by the EnumObjectPermissions method.
Beispiele
Gewährung, Widerrufen und Verweigern von Berechtigungen
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.
Siehe auch
Verweis
Microsoft.SqlServer.Management.Smo-Namespace