Condividi tramite


Classe PermissionInfo

The PermissionInfo class represents information regarding granted or denied privileges.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Smo.PermissionInfo
    Microsoft.SqlServer.Management.Smo.DatabasePermissionInfo
    Microsoft.SqlServer.Management.Smo.ObjectPermissionInfo
    Microsoft.SqlServer.Management.Smo.ServerPermissionInfo

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Class PermissionInfo
'Utilizzo
Dim instance As PermissionInfo
public class PermissionInfo
public ref class PermissionInfo
type PermissionInfo =  class end
public class PermissionInfo

Nel tipo PermissionInfo sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica ColumnName Gets the name of the column that has permissions granted or denied.
Proprietà pubblica Grantee Gets the name of the database user, logon, or database role who has been granted or denied access to the object.
Proprietà pubblica GranteeType Gets the type of grantee.
Proprietà pubblica Grantor Gets the name of the database user, logon, or database role who granted or denied access to the object.
Proprietà pubblica GrantorType Gets the type of grantor.
Proprietà pubblica ObjectClass Gets the object class for the object to which permissions have been granted or denied.
Proprietà pubblica ObjectID Gets the ID value that uniquely identifies the object to which the permission applies.
Proprietà pubblica ObjectName Gets the name of the object to which the permission applies.
Proprietà pubblica ObjectSchema Gets the schema of the object to which the permission applies.
Proprietà pubblica 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.
Proprietà protetta PermissionTypeInternal Identificato solo a scopo informativo. Non supportato. Non è garantita la compatibilità con le versioni future.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Returns the object as a String value. Esegue l'override di Object.ToString().

In alto

Osservazioni

The PermissionInfo object is returned by the EnumObjectPermissions method.

Esempi

Concessione, revoca e negazione delle autorizzazioni

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

sys.syspermissions (Transact-SQL)