Aracılığıyla paylaş


ObjectRenamedEventArgs Class

The ObjectRenamedEventArgs object represents the arguments passed by the event raised when an object is renamed.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.Smo.SmoEventArgs
      Microsoft.SqlServer.Management.Smo.ObjectRenamedEventArgs

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

Syntax

'Bildirim
Public Class ObjectRenamedEventArgs _
    Inherits SmoEventArgs
'Kullanım
Dim instance As ObjectRenamedEventArgs
public class ObjectRenamedEventArgs : SmoEventArgs
public ref class ObjectRenamedEventArgs : public SmoEventArgs
type ObjectRenamedEventArgs =  
    class
        inherit SmoEventArgs
    end
public class ObjectRenamedEventArgs extends SmoEventArgs

The ObjectRenamedEventArgs type exposes the following members.

Constructors

  Name Description
Public method ObjectRenamedEventArgs(Urn, Object, String, String) A ObjectRenamedEventArgs object
Public method ObjectRenamedEventArgs(Urn, Object, String, String, String) A ObjectRenamedEventArgs object

Top

Properties

  Name Description
Public property NewName Gets the new name of the object.
Public property OldName Gets the old name of the object.
Public property OldUrn Property identifying the URN object before changing.
Public property SmoObject Gets the object that is being renamed.
Public property Urn Gets the Uniform Resource Name (URN) address of SMO event. (Inherited from SmoEventArgs.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

Thread Safety

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

Examples

Handling SMO Events

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