Export (0) Print
Expand All

ServerRoleExtender Class

SQL Server 2014

Adds methods and properties to the ServerRole object.

This API is not CLS-compliant. 

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[CLSCompliantAttribute(false)]
public class ServerRoleExtender : SmoObjectExtender<ServerRole>, 
	ISfcValidate

The ServerRoleExtender type exposes the following members.

  NameDescription
Public methodServerRoleExtender()Initializes a new instance of the ServerRoleExtender class.
Public methodServerRoleExtender(ServerRole)Initializes a new instance of the ServerRoleExtender class, specifying the associated ServerRole.
Top

  NameDescription
Public propertyConnectionContextGets the ServerConnection which is associated with the object.
Public propertyContainingRoleNamesGets a StringCollection which contains the names of the Server Roles which contain the ServerRole as a member.
Public propertyCurrentObjectGets the ServerRole which this ServerRoleExtender represents.
Public propertyGeneralPageDataContainerGets or sets the Object which represents the general page data container for the instance.
Public propertyGeneralPageOnRunNowGets or sets the Object which represents the “General Page on Run Now” event handler.
Public propertyIsFixedRoleOrPublicA Boolean which indicates whether the ServerRole is Public or a fixed server role.
Public propertyMemberNameIsMemberHashGets a Dictionary which keeps membership information for the role.
Public propertyOwnerForUIGets or sets a String which contains the name of the owner.
Protected propertyParentDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public propertyRoleMembersTableDataGets a DataTable which is used to hold information about the members of the ServerRole.
Public propertyServerRoleMembershipsTableDataGets a DataTable which is used to hold information about the ServerRole members of the ServerRole.
Public propertyServerRoleNameHasMembershipHashGets a Dictionary which keeps ServerRole membership information for the role.
Public propertyStateGets the SqlSmoState of the parent ServerRole.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetParentSfcPropertySetReturns an instance of the parent objects property set. (Inherited from SmoObjectExtender<T>.)
Public methodGetPropertySetDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnPropertyChangedRaises the PropertyChanged event when it has any subscriber. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Protected methodOnPropertyMetadataChangedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Protected methodparent_PropertyChangedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Protected methodparent_PropertyMetadataChangedIndicates the parent object in the PropertyMetadata. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public methodRefreshRoleMembersHashRebuilds the ServerRoleNameHasMembershipHash dictionary from the ServerRoleMembershipsTableData.
Public methodRefreshServerRoleNameHasMembershipHashRebuilds the MemberNameIsMemberHash dictionary from the RoleMembersTableData.
Protected methodRegisterParentPropertyRegisters the property of the parent that has not been included in properties collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Protected methodRegisterProperty(PropertyInfo)Registers an additional reflected property. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Protected methodRegisterProperty(PropertyInfo, String)Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public methodToString (Inherited from Object.)
Public methodValidateValidates the parent.
Top

  NameDescription
Public eventPropertyChangedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public eventPropertyMetadataChangedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft