ServerPermissionInfo-Klasse
The ServerPermissionInfo object represents information about a SQL Server server-level permission.
Vererbungshierarchie
System.Object
Microsoft.SqlServer.Management.Smo.PermissionInfo
Microsoft.SqlServer.Management.Smo.ServerPermissionInfo
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Class ServerPermissionInfo _
Inherits PermissionInfo
'Usage
Dim instance As ServerPermissionInfo
public class ServerPermissionInfo : PermissionInfo
public ref class ServerPermissionInfo : public PermissionInfo
type ServerPermissionInfo =
class
inherit PermissionInfo
end
public class ServerPermissionInfo extends PermissionInfo
Der ServerPermissionInfo-Typ macht folgende Elemente verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
ServerPermissionInfo | Initializes a new instance of the ServerPermissionInfo class. |
Zum Anfang
Eigenschaften
Name | Beschreibung | |
---|---|---|
ColumnName | Gets the name of the column that has permissions granted or denied. (Geerbt von PermissionInfo.) | |
Grantee | Gets the name of the database user, logon, or database role who has been granted or denied access to the object. (Geerbt von PermissionInfo.) | |
GranteeType | Gets the type of grantee. (Geerbt von PermissionInfo.) | |
Grantor | Gets the name of the database user, logon, or database role who granted or denied access to the object. (Geerbt von PermissionInfo.) | |
GrantorType | Gets the type of grantor. (Geerbt von PermissionInfo.) | |
ObjectClass | Gets the object class for the object to which permissions have been granted or denied. (Geerbt von PermissionInfo.) | |
ObjectID | Gets the ID value that uniquely identifies the object to which the permission applies. (Geerbt von PermissionInfo.) | |
ObjectName | Gets the name of the object to which the permission applies. (Geerbt von PermissionInfo.) | |
ObjectSchema | Gets the schema of the object to which the permission applies. (Geerbt von PermissionInfo.) | |
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. (Geerbt von PermissionInfo.) | |
PermissionType | Gets the type of permission. | |
PermissionTypeInternal | Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von PermissionInfo.) |
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. (Geerbt von PermissionInfo.) |
Zum Anfang
Hinweise
Thread Safety
Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.
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.