共用方式為


ServerEvent.AlterMasterKey 屬性

Gets a server event that can be included in the event set.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared ReadOnly Property AlterMasterKey As ServerEvent 
    Get
'用途
Dim value As ServerEvent 

value = ServerEvent.AlterMasterKey
public static ServerEvent AlterMasterKey { get; }
public:
static property ServerEvent^ AlterMasterKey {
    ServerEvent^ get ();
}
static member AlterMasterKey : ServerEvent
static function get AlterMasterKey () : ServerEvent

屬性值

型別:Microsoft.SqlServer.Management.Smo.ServerEvent
A ServerEvent object that represents the AlterMasterKey event that can be included in the server event set.

範例

處理 SMO 事件

請參閱

參考

ServerEvent 類別

Microsoft.SqlServer.Management.Smo 命名空間