XmlSerializerAssemblyAttribute 构造函数

定义

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

重载

XmlSerializerAssemblyAttribute()

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

XmlSerializerAssemblyAttribute(String)

用指定的程序集名称初始化 XmlSerializerAssemblyAttribute 类的新实例。Initializes a new instance of the XmlSerializerAssemblyAttribute class with the specified assembly name.

XmlSerializerAssemblyAttribute(String, String)

用指定的程序集名称和程序集位置初始化 XmlSerializerAssemblyAttribute 类的新实例。Initializes a new instance of the XmlSerializerAssemblyAttribute class with the specified assembly name and location of the assembly.

XmlSerializerAssemblyAttribute()

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

public:
 XmlSerializerAssemblyAttribute();
public XmlSerializerAssemblyAttribute ();
Public Sub New ()

XmlSerializerAssemblyAttribute(String)

用指定的程序集名称初始化 XmlSerializerAssemblyAttribute 类的新实例。Initializes a new instance of the XmlSerializerAssemblyAttribute class with the specified assembly name.

public:
 XmlSerializerAssemblyAttribute(System::String ^ assemblyName);
public XmlSerializerAssemblyAttribute (string assemblyName);
new System.Xml.Serialization.XmlSerializerAssemblyAttribute : string -> System.Xml.Serialization.XmlSerializerAssemblyAttribute
Public Sub New (assemblyName As String)

参数

assemblyName
String

程序集的未加密的简单名称。The simple, unencrypted name of the assembly.

XmlSerializerAssemblyAttribute(String, String)

用指定的程序集名称和程序集位置初始化 XmlSerializerAssemblyAttribute 类的新实例。Initializes a new instance of the XmlSerializerAssemblyAttribute class with the specified assembly name and location of the assembly.

public:
 XmlSerializerAssemblyAttribute(System::String ^ assemblyName, System::String ^ codeBase);
public XmlSerializerAssemblyAttribute (string assemblyName, string codeBase);
new System.Xml.Serialization.XmlSerializerAssemblyAttribute : string * string -> System.Xml.Serialization.XmlSerializerAssemblyAttribute
Public Sub New (assemblyName As String, codeBase As String)

参数

assemblyName
String

程序集的未加密的简单名称。The simple, unencrypted name of the assembly.

codeBase
String

一个字符串,它是程序集的 URL 位置。A string that is the URL location of the assembly.

适用于