Aracılığıyla paylaş


ServerRoleExtender Class

Adds methods and properties to the ServerRole object.

This API is not CLS-compliant. 

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectExtender<ServerRole>
    Microsoft.SqlServer.Management.Smo.SmoObjectExtender<ServerRole>
      Microsoft.SqlServer.Management.Smo.ServerRoleExtender

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

Syntax

'Bildirim
<CLSCompliantAttribute(False)> _
Public Class ServerRoleExtender _
    Inherits SmoObjectExtender(Of ServerRole) _
    Implements ISfcValidate
'Kullanım
Dim instance As ServerRoleExtender
[CLSCompliantAttribute(false)]
public class ServerRoleExtender : SmoObjectExtender<ServerRole>, 
    ISfcValidate
[CLSCompliantAttribute(false)]
public ref class ServerRoleExtender : public SmoObjectExtender<ServerRole^>, 
    ISfcValidate
[<CLSCompliantAttribute(false)>]
type ServerRoleExtender =  
    class
        inherit SmoObjectExtender<ServerRole>
        interface ISfcValidate
    end
public class ServerRoleExtender extends SmoObjectExtender<ServerRole> implements ISfcValidate

The ServerRoleExtender type exposes the following members.

Constructors

  Name Description
Public method ServerRoleExtender() Initializes a new instance of the ServerRoleExtender class.
Public method ServerRoleExtender(ServerRole) Initializes a new instance of the ServerRoleExtender class, specifying the associated ServerRole.

Top

Properties

  Name Description
Public property ConnectionContext Gets the ServerConnection which is associated with the object.
Public property ContainingRoleNames Gets a StringCollection which contains the names of the Server Roles which contain the ServerRole as a member.
Public property CurrentObject Gets the ServerRole which this ServerRoleExtender represents.
Public property GeneralPageDataContainer Gets or sets the Object which represents the general page data container for the instance.
Public property GeneralPageOnRunNow Gets or sets the Object which represents the “General Page on Run Now” event handler.
Public property IsFixedRoleOrPublic A Boolean which indicates whether the ServerRole is Public or a fixed server role.
Public property MemberNameIsMemberHash Gets a Dictionary<TKey, TValue> which keeps membership information for the role.
Public property OwnerForUI Gets or sets a String which contains the name of the owner.
Protected property Parent Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public property RoleMembersTableData Gets a DataTable which is used to hold information about the members of the ServerRole.
Public property ServerRoleMembershipsTableData Gets a DataTable which is used to hold information about the ServerRole members of the ServerRole.
Public property ServerRoleNameHasMembershipHash Gets a Dictionary<TKey, TValue> which keeps ServerRole membership information for the role.
Public property State Gets the SqlSmoState of the parent ServerRole.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Protected method GetParentSfcPropertySet Returns an instance of the parent objects property set. (Inherited from SmoObjectExtender<T>.)
Public method GetPropertySet Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnPropertyChanged Raises 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 method OnPropertyMetadataChanged Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Protected method parent_PropertyChanged Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Protected method parent_PropertyMetadataChanged Indicates 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 method RefreshRoleMembersHash Rebuilds the ServerRoleNameHasMembershipHash dictionary from the ServerRoleMembershipsTableData.
Public method RefreshServerRoleNameHasMembershipHash Rebuilds the MemberNameIsMemberHash dictionary from the RoleMembersTableData.
Protected method RegisterParentProperty Registers 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 method RegisterProperty(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 method RegisterProperty(PropertyInfo, String) Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public method ToString (Inherited from Object.)
Public method Validate Validates the parent.

Top

Events

  Name Description
Public event PropertyChanged Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)
Public event PropertyMetadataChanged Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcObjectExtender<TSfcInstance>.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace