ObjectRenamedEventArgs Constructor

Initializes a new instance of the ObjectRenamedEventArgs class with the specified Uniform Resource Name (URN) value, the specified inner object, and the new and old names.

命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

语法

声明
Public Sub New ( _
    urn As Urn, _
    innerObject As Object, _
    oldName As String, _
    newName As String _
)
public ObjectRenamedEventArgs (
    Urn urn,
    Object innerObject,
    string oldName,
    string newName
)
public:
ObjectRenamedEventArgs (
    Urn^ urn, 
    Object^ innerObject, 
    String^ oldName, 
    String^ newName
)
public ObjectRenamedEventArgs (
    Urn urn, 
    Object innerObject, 
    String oldName, 
    String newName
)
public function ObjectRenamedEventArgs (
    urn : Urn, 
    innerObject : Object, 
    oldName : String, 
    newName : String
)

参数

  • urn
    A Urn object value that specifies the URN value.
  • innerObject
    An Object system object value that specifies the inner object that caused the event.
  • oldName
    A String value that specifies name of the object.
  • newName
    A String value that specifies the new name of the object.

备注

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

示例

How to: Register Event Handlers and Subscribe to Event Handling in Visual Basic .NET

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

ObjectRenamedEventArgs Class
ObjectRenamedEventArgs Members
Microsoft.SqlServer.Management.Smo Namespace

其他资源

Handling SMO Events