ComponentRenameEventArgs クラス
アセンブリ: System (system.dll 内)
構文
ComponentRenameEventArgs は、ComponentRename イベントに関するデータを提供します。
ComponentRenameEventArgs オブジェクトは、次の情報を提供します。
メモ |
---|
このクラスに適用される HostProtectionAttribute 属性の Resources プロパティの値は、SharedState です。HostProtectionAttribute は、デスクトップ アプリケーション (一般的には、アイコンをダブルクリック、コマンドを入力、またはブラウザに URL を入力して起動するアプリケーション) には影響しません。詳細については、HostProtectionAttribute クラスのトピックまたは「SQL Server プログラミングとホスト保護属性」を参照してください。 |
ComponentRenameEventArgs を作成する例を次に示します。
' This example method creates a ComponentRenameEventArgs using the specified arguments. ' Typically, this type of event args is created by a design mode subsystem. Public Function CreateComponentRenameEventArgs(ByVal component As Object, ByVal oldName As String, ByVal newName As String) As ComponentRenameEventArgs Dim args As New ComponentRenameEventArgs(component, oldName, newName) ' The component that was renamed: args.Component ' The previous name of the component: args.OldName ' The new name of the component: args.NewName Return args End Function
// This example method creates a ComponentRenameEventArgs using the specified arguments. // Typically, this type of event args is created by a design mode subsystem. public ComponentRenameEventArgs CreateComponentRenameEventArgs(object component, string oldName, string newName) { ComponentRenameEventArgs args = new ComponentRenameEventArgs(component , oldName, newName); // The component that was renamed: args.Component // The previous name of the component: args.OldName // The new name of the component: args.NewName return args; }
public: // This example method creates a ComponentRenameEventArgs using the specified arguments. // Typically, this type of event args is created by a design mode subsystem. ComponentRenameEventArgs^ CreateComponentRenameEventArgs( Object^ component, String^ oldName, String^ newName ) { // The component that was renamed: args.Component // The previous name of the component: args.OldName // The new name of the component: args.NewName return gcnew ComponentRenameEventArgs( component, oldName, newName ); }
// This example method creates a ComponentRenameEventArgs // using the specified arguments. // Typically, this type of event args is created by a design mode subsystem. public ComponentRenameEventArgs CreateComponentRenameEventArgs( Object component, String oldName, String newName) { ComponentRenameEventArgs args = new ComponentRenameEventArgs(component , oldName, newName); // The component that was renamed: args.Component // The previous name of the component: args.OldName // The new name of the component: args.NewName return args; } //CreateComponentRenameEventArgs
System.EventArgs
System.ComponentModel.Design.ComponentRenameEventArgs
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- ComponentRenameEventArgs クラスのページへのリンク