Partager via


ServerRoleExtender Class

Definition

Important

This API is not CLS-compliant.

[System.CLSCompliant(false)]
public class ServerRoleExtender : Microsoft.SqlServer.Management.Smo.SmoObjectExtender<Microsoft.SqlServer.Management.Smo.ServerRole>, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcValidate
[<System.CLSCompliant(false)>]
type ServerRoleExtender = class
    inherit SmoObjectExtender<ServerRole>
    interface ISfcValidate
Public Class ServerRoleExtender
Inherits SmoObjectExtender(Of ServerRole)
Implements ISfcValidate
Inheritance
Attributes
Implements

Constructors

ServerRoleExtender()
ServerRoleExtender(ServerRole)

Properties

ConnectionContext
ContainingRoleNames
CurrentObject
GeneralPageDataContainer
GeneralPageOnRunNow

Property to access the General Page's OnRunNow method.

IsFixedRoleOrPublic
MemberNameIsMemberHash

For every member name key, value = true means a new member is added and value = false means an existing member is dropped.

OwnerForUI

This property is used in Server Role relational engine task UI. If someone sets Owner property to string.Empty, that means Owner is dirty and is not null. At that point SMO also scripts the Authorization-part of create T-SQL. Hence, we set Owner property to 'null' in that case, just before Create() in order to skip scripting Authorization-part of Create T-SQL.

Parent

Parent object

(Inherited from SfcObjectExtender<TSfcInstance>)
RoleMembersTableData
ServerRoleMembershipsTableData
ServerRoleNameHasMembershipHash

For every server role name key, value = true means a new membership is added and value = false means an existing membership is dropped.

State

Methods

GetParentSfcPropertySet() (Inherited from SmoObjectExtender<T>)
GetPropertySet()

returns collection of the properties

(Inherited from SfcObjectExtender<TSfcInstance>)
OnPropertyChanged(String)

Fires PropertyChanged event, when it has any subscriber

(Inherited from SfcObjectExtender<TSfcInstance>)
OnPropertyMetadataChanged(String)

Fires PropertyMetadataChanged event, when it has any subscriber

(Inherited from SfcObjectExtender<TSfcInstance>)
parent_PropertyChanged(Object, PropertyChangedEventArgs) (Inherited from SfcObjectExtender<TSfcInstance>)
parent_PropertyMetadataChanged(Object, SfcPropertyMetadataChangedEventArgs) (Inherited from SfcObjectExtender<TSfcInstance>)
PropagateAlterToChildren(StringCollection, Boolean)

Adds the Alter script of the child objects to the script.

(Inherited from SmoObjectExtender<T>)
RefreshRoleMembersHash()
RefreshServerRoleNameHasMembershipHash()
RegisterParentProperty(PropertyInfo)

Register property of the parent, that has not been included in properties collection (like 'Name' in SMO or collections

(Inherited from SfcObjectExtender<TSfcInstance>)
RegisterProperty(PropertyInfo, String)

Register an additional reflected property, dependant on the property from the parent object

(Inherited from SfcObjectExtender<TSfcInstance>)
RegisterProperty(PropertyInfo)

Register an additional reflected property

(Inherited from SfcObjectExtender<TSfcInstance>)
Validate(String, Object[])

Events

PropertyChanged (Inherited from SfcObjectExtender<TSfcInstance>)
PropertyMetadataChanged (Inherited from SfcObjectExtender<TSfcInstance>)

Applies to