Udostępnij za pośrednictwem


Zdarzenie BeforeObjectRenamed

Występuje przed została zmieniona nazwa obiektu SFC. Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw:  Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Deklaracja
Public Event BeforeObjectRenamed As SfcApplication..::..SfcBeforeObjectRenamedEventHandler
'Użycie
Dim instance As SfcApplicationEvents
Dim handler As SfcApplication..::..SfcBeforeObjectRenamedEventHandler

AddHandler instance.BeforeObjectRenamed, handler
public event SfcApplication..::..SfcBeforeObjectRenamedEventHandler BeforeObjectRenamed
public:
 event SfcApplication..::..SfcBeforeObjectRenamedEventHandler^ BeforeObjectRenamed {
    void add (SfcApplication..::..SfcBeforeObjectRenamedEventHandler^ value);
    void remove (SfcApplication..::..SfcBeforeObjectRenamedEventHandler^ value);
}
member BeforeObjectRenamed : IEvent<SfcApplication..::..SfcBeforeObjectRenamedEventHandler,
    SfcBeforeObjectRenamedEventArgs>
JScript supports the use of events, but not the declaration of new ones.