Edit

Share via


ResolveNameEventArgs Class

Definition

Provides data for the ResolveName event.

public ref class ResolveNameEventArgs : EventArgs
public class ResolveNameEventArgs : EventArgs
type ResolveNameEventArgs = class
    inherit EventArgs
Public Class ResolveNameEventArgs
Inherits EventArgs
Inheritance
ResolveNameEventArgs

Examples

The following example method returns a ResolveNameEventArgs that indicates the name of an object that could not be resolved by a serialization process.

public:
   ResolveNameEventArgs^ CreateResolveNameEventArgs( Object^ value, String^ name )
   {
      ResolveNameEventArgs^ e = gcnew ResolveNameEventArgs( name );
      // The name to resolve                       e.Name
      // Stores an Object matching the name        e.Value
      return e;
   }
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;
}
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

Remarks

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

Constructors

ResolveNameEventArgs(String)

Initializes a new instance of the ResolveNameEventArgs class.

Properties

Name

Gets the name of the object to resolve.

Value

Gets or sets the object that matches the name.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also