Поделиться через


Элементы DatabaseRole

The DatabaseRole object represents a SQL Server database security role.

Тип DatabaseRole предоставляет доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод DatabaseRole() () () () Initializes a new instance of the DatabaseRole class.
Открытый метод DatabaseRole(Database, String) Initializes a new instance of the DatabaseRole class.

В начало

Методы

  Имя Описание
Защищенный метод AddDatabaseContext (Наследуется из SqlSmoObject.)
Открытый метод AddMember Adds an existing database user or database role to the database role.
Открытый метод Alter Updates any DatabaseRole object property changes on the instance of Microsoft SQL Server.
Защищенный метод AlterImpl (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplInit (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод AppendCommaText (Наследуется из ScriptNameObjectBase.)
Защищенный метод AppendWithCommaText (Наследуется из ScriptNameObjectBase.)
Защищенный метод AppendWithOption (Наследуется из ScriptNameObjectBase.)
Защищенный метод BindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод BindRuleImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckCollation (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectDirty (Наследуется из ScriptNameObjectBase.)
Защищенный метод CheckObjectState() () () () Validates the state of the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectState(Boolean) Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectStateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckTextCorectness (Наследуется из ScriptNameObjectBase.)
Защищенный метод CheckTextModeSupport (Наследуется из ScriptNameObjectBase.)
Защищенный метод CheckVersion100 (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80 Checks the validity of the object on SQL Server 2000. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion90 Check the validity of the object on SQL Server 2005. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersionBelow90 (Наследуется из SqlSmoObject.)
Защищенный метод CleanObject Cleans the referenced object. (Наследуется из ScriptNameObjectBase.)
Открытый метод Create Creates a database role on the instance of Microsoft SQL Server as defined by the DatabaseRole object.
Защищенный метод CreateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplInit (Наследуется из SqlSmoObject.)
Открытый метод Deny(ObjectPermissionSet, String) Denies the specified set of permissions for the specified grantee on the database role.
Открытый метод Deny(ObjectPermissionSet, array<String> [] () [] []) Denies the specified set of permissions for the specified grantees on the database role.
Открытый метод Deny(ObjectPermissionSet, String, Boolean) Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the database role.
Открытый метод Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the database role.
Открытый метод Discover (Наследуется из SqlSmoObject.)
Открытый метод Drop Drops the database role.
Защищенный метод DropImpl (Наследуется из SqlSmoObject.)
Защищенный метод DropImplWorker (Наследуется из SqlSmoObject.)
Открытый метод DropMember Removes the specified database user or role from the referenced database role.
Открытый метод EnumAgentProxyAccounts Returns a list of agent proxy accounts that are assigned to the database role.
Открытый метод EnumMembers Returns a list of database users that are members of the database role.
Открытый метод EnumObjectPermissions() () () () Returns a list of object permissions assigned to the referenced database role.
Открытый метод EnumObjectPermissions(String) Returns a list of object permissions assigned to the referenced database role for the specified member of the role.
Открытый метод EnumObjectPermissions(ObjectPermissionSet) Returns a list of object permissions assigned to the referenced database role for the specified set of object permissions.
Открытый метод EnumObjectPermissions(String, ObjectPermissionSet) Returns a list of object permissions assigned to the referenced database role for the specified member of the role and for the specified set of permissions.
Открытый метод EnumRoles Returns a list of the roles that the referenced database role is a member of.
Защищенный метод EnumScriptImpl (Наследуется из SqlSmoObject.)
Защищенный метод EnumScriptImplWorker (Наследуется из SqlSmoObject.)
Открытый метод Equals (Наследуется из Object.)
Защищенный метод Finalize (Наследуется из Object.)
Защищенный метод ForceTextModeOnTextBody Enforces text mode on the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод FormatSqlVariant (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceFileStreamScript (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindDefaultScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindRuleScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetBraketNameForText (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetDateTimeParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetDateTimeParameterAsInt (Наследуется из SqlSmoObject.)
Защищенный метод GetDBName Gets the database name that is associated with the object. (Наследуется из SqlSmoObject.)
Защищенный метод GetEnumParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetFragOptionString (Наследуется из SqlSmoObject.)
Защищенный метод GetGuidParameter (Наследуется из SqlSmoObject.)
Открытый метод GetHashCode (Наследуется из Object.)
Защищенный метод GetIsTextDirty Determines whether the text value is consistent with stored value. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValue (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptional (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptionalAllowNull (Наследуется из SqlSmoObject.)
Защищенный метод GetRealValue (Наследуется из SqlSmoObject.)
Защищенный метод GetScriptIncludeExists (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetScriptingOptionsForCreate (Наследуется из SqlSmoObject.)
Защищенный метод GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetServerObject (Наследуется из SqlSmoObject.)
Защищенный метод GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetTextBody() () () () Returns the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextBody(Boolean) Returns the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextHeader Returns the text header. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextMode Determines whether the script name is using text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextProperty(String) (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTextProperty(String, ScriptingOptions) (Наследуется из ScriptNameObjectBase.)
Защищенный метод GetTimeSpanParameterAsInt (Наследуется из SqlSmoObject.)
Открытый метод GetType (Наследуется из Object.)
Защищенный метод GetUrnRecursive(StringBuilder) (Наследуется из SqlSmoObject.)
Защищенный метод GetUrnRecursive(StringBuilder, UrnIdOption) (Наследуется из SqlSmoObject.)
Открытый метод Grant(ObjectPermissionSet, String) Grants the specified set of permissions to the specified grantee on the database role.
Открытый метод Grant(ObjectPermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the database role.
Открытый метод Grant(ObjectPermissionSet, String, Boolean) Grants access to the specified permission to the grantee and the ability to grant access to other users on the database role.
Открытый метод Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean) Grants access to the specified permission to the grantees and the ability to grant access to other users on the database role.
Открытый метод Grant(ObjectPermissionSet, String, Boolean, String) permissions to other users on the database role under an assumed role.
Открытый метод Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the database role under an assumed role.
Защищенный метод ImplInitialize (Наследуется из SqlSmoObject.)
Открытый метод Initialize() () () () Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Открытый метод Initialize(Boolean) Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Наследуется из ScriptNameObjectBase.)
Защищенный метод IsObjectInitialized Verifies whether the object has been initialized. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Наследуется из SqlSmoObject.)
Защищенный метод IsVersion80SP3 (Наследуется из SqlSmoObject.)
Защищенный метод MarkDropped (Наследуется из SqlSmoObject.)
Защищенный метод MarkForDropImpl (Наследуется из SqlSmoObject.)
Защищенный метод MemberwiseClone (Наследуется из Object.)
Защищенный метод PostAlter (Наследуется из SqlSmoObject.)
Защищенный метод PostCreate (Наследуется из SqlSmoObject.)
Защищенный метод PostDrop (Наследуется из SqlSmoObject.)
Открытый метод Refresh Refreshes the script name. (Наследуется из ScriptNameObjectBase.)
Открытый метод Rename Renames the database role.
Защищенный метод RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Открытый метод Revoke(ObjectPermissionSet, String) Revokes a previously granted set of permissions from a grantee on the database role.
Открытый метод Revoke(ObjectPermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the database role.
Открытый метод Revoke(ObjectPermissionSet, String, Boolean, Boolean) Revokes previously granted permissions from a grantee on the database role and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Открытый метод Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) Revokes previously granted permissions from grantees on the database role and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Открытый метод Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revokes previously granted permissions from a grantee on the database role and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Открытый метод Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) Revokes previously granted permissions from grantees on the database role and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Открытый метод Script() () () () Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server database role.
Открытый метод Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server database role as specified by the scripting options.
Защищенный метод ScriptAlter (Наследуется из SqlSmoObject.)
Защищенный метод ScriptAnsiQI (Наследуется из ScriptNameObjectBase.)
Защищенный метод ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод ScriptCreate (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDdl (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDrop (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl() () () () (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl(ScriptingOptions) (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод ScriptInformativeHeaders (Наследуется из ScriptNameObjectBase.)
Защищенный метод ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод SetCollectionTextMode Sets the collection text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SetParentImpl (Наследуется из SqlSmoObject.)
Защищенный метод SetTextBody Specifies the text body. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SetTextHeader Specifies the text header. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SetTextMode Specifies the text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод SwitchTextMode Switches the text mode. (Наследуется из ScriptNameObjectBase.)
Защищенный метод ThrowIfTextIsDirtyForAlter (Наследуется из ScriptNameObjectBase.)
Открытый метод ToString Returns a String that represents the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод TouchImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindRuleImpl (Наследуется из SqlSmoObject.)
Открытый метод Validate (Наследуется из SmoObjectBase.)

В начало

Поля

  Имя Описание
Защищенное поле m_ExtendedProperties (Наследуется из SqlSmoObject.)

В начало

Свойства

  Имя Описание
Открытое свойство CreateDate Gets the date and time when the database role was created.
Открытое свойство DateLastModified Gets the date and time when the database role was last modified.
Защищенное свойство ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Наследуется из SqlSmoObject.)
Открытое свойство ExtendedProperties Gets the extended properties of the database role.
Открытое свойство ID Gets the ID value that uniquely identifies the database role.
Открытое свойство IsFixedRole Gets the Boolean property value that specifies whether the database role is a fixed role or a user-defined role.
Защищенное свойство IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Наследуется из SqlSmoObject.)
Открытое свойство Name Gets or sets the name of the object. (Наследуется из NamedSmoObject.)
Защищенное свойство ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Наследуется из SqlSmoObject.)
Открытое свойство Owner Gets or sets the owner of the database role.
Открытое свойство Parent Gets or sets the Database object that is the parent of the DatabaseRole object.
Открытое свойство Properties Gets a collection of Property objects that represent the object properties. (Наследуется из SqlSmoObject.)
Защищенное свойство ScalarResult Gets the scalar result for the referenced object. (Наследуется из SqlSmoObject.)
Открытое свойство State Gets the state of the referenced object. (Наследуется из SmoObjectBase.)
Открытое свойство Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Наследуется из SqlSmoObject.)
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Наследуется из SmoObjectBase.)

В начало

События

  Имя Описание
Открытое событие PropertyChanged (Наследуется из SqlSmoObject.)
Открытое событие PropertyMetadataChanged (Наследуется из SqlSmoObject.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод IAlienObjectDiscover (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetParent (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetProperty (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод ISfcPropertyProviderGetPropertySet (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetUrn (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectResolve (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectSetProperty (Наследуется из SqlSmoObject.)

В начало