ConfigurationElement.GetTransformedAssemblyString(String) Method

Definition

返回指定程序集名称的转换版本。Returns the transformed version of the specified assembly name.

protected:
 virtual System::String ^ GetTransformedAssemblyString(System::String ^ assemblyName);
protected virtual string GetTransformedAssemblyString (string assemblyName);
abstract member GetTransformedAssemblyString : string -> string
override this.GetTransformedAssemblyString : string -> string
Protected Overridable Function GetTransformedAssemblyString (assemblyName As String) As String

Parameters

assemblyName
String

程序集的名称。The name of the assembly.

Returns

String

程序集名称的转换版本。The transformed version of the assembly name. 如果没有可用的转换器,则返回的 assemblyName 参数值保持不变。If no transformer is available, the assemblyName parameter value is returned unchanged. 如果没有可用的转换器,则 TypeStringTransformer 属性为 nullThe TypeStringTransformer property is null if no transformer is available.

Remarks

SerializeElement 方法和 SerializeToXmlElement 方法调用此方法,以便在将早期版本的 .NET Framework.NET Framework 作为目标时转换程序集名称。The SerializeElement method and the SerializeToXmlElement method call this method in order to transform an assembly name when an earlier version of the .NET Framework.NET Framework is targeted.

Applies to

See also