ResolveNameEventArgs 类

定义

ResolveName 事件提供数据。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
继承
ResolveNameEventArgs

示例

下面的示例方法返回一个ResolveNameEventArgs , 它指示序列化进程无法解析的对象的名称。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

注解

ResolveNameEventArgs序列化进程使用将名称与对象实例进行匹配。ResolveNameEventArgs is used by the serialization process to match a name to an object instance.

构造函数

ResolveNameEventArgs(String)

初始化 ResolveNameEventArgs 类的新实例。Initializes a new instance of the ResolveNameEventArgs class.

属性

Name

获取要解析的对象的名称。Gets the name of the object to resolve.

Value

获取或设置与该名称匹配的对象。Gets or sets the object that matches the name.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅