ResolveNameEventArgs 类

定义

ResolveName 事件提供数据。

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

示例

以下示例方法返回一个 , ResolveNameEventArgs 指示序列化过程无法解析的对象的名称。

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(String)

初始化 ResolveNameEventArgs 类的新实例。

属性

Name

获取要解析的对象的名称。

Value

获取或设置与该名称匹配的对象。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅