ResolveNameEventArgs Class

ResolveNameEventArgs Class

Provides data for the ResolveName event.

For a list of all members of this type, see ResolveNameEventArgs Members.

System.Object
   System.EventArgs
      System.ComponentModel.Design.Serialization.ResolveNameEventArgs

[Visual Basic]
Public Class ResolveNameEventArgs
   Inherits EventArgs
[C#]
public class ResolveNameEventArgs : EventArgs
[C++]
public __gc class ResolveNameEventArgs : public EventArgs
[JScript]
public class ResolveNameEventArgs extends EventArgs

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.

Remarks

ResolveNameEventArgs is used by the serialization process to match a name to an object instance.

Example

[Visual Basic, C#, C++] The following example method returns a ResolveNameEventArgs that indicates the name of an object that could not be resolved by a serialization process.

[Visual Basic] 
Public Function CreateResolveNameEventArgs(ByVal value As Object, ByVal name As String) As ResolveNameEventArgs
    Dim e As New ResolveNameEventArgs(name)
    ' The name to resolve                       e.Name       
    ' Stores an object matching the name        e.Value            
    Return e
End Function


[C#] 
public ResolveNameEventArgs CreateResolveNameEventArgs(object value, string name)        
{           
    ResolveNameEventArgs e = new ResolveNameEventArgs(name);
    // The name to resolve                       e.Name       
    // Stores an object matching the name        e.Value            
    return e;
}

[C++] 
public:
   ResolveNameEventArgs* CreateResolveNameEventArgs(Object* value, String* name) {
      ResolveNameEventArgs* e = new ResolveNameEventArgs(name);
      // The name to resolve                       e.Name
      // Stores an Object matching the name        e.Value
      return e;
   }

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.ComponentModel.Design.Serialization

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

ResolveNameEventArgs Members | System.ComponentModel.Design.Serialization Namespace | ResolveNameEventHandler | ResolveName

Show:
© 2016 Microsoft