ResolveNameEventArgs Class

 

Provides data for the ResolveName event.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System (in System.dll)

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

<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState := True)>
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")>
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")>
Public Class ResolveNameEventArgs
	Inherits EventArgs

NameDescription
System_CAPS_pubmethodResolveNameEventArgs(String)

Initializes a new instance of the ResolveNameEventArgs class.

NameDescription
System_CAPS_pubpropertyName

Gets the name of the object to resolve.

System_CAPS_pubpropertyValue

Gets or sets the object that matches the name.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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

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

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

.NET Framework
Available since 1.1

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

Return to top
Show: