ConfigurationElement.GetTransformedAssemblyString(String) ConfigurationElement.GetTransformedAssemblyString(String) ConfigurationElement.GetTransformedAssemblyString(String) ConfigurationElement.GetTransformedAssemblyString(String) Method

定义

返回指定程序集名称的转换版本。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

参数

assemblyName
String String String String

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

返回

程序集名称的转换版本。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.

注解

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.

适用于

另请参阅