Configuration.TypeStringTransformer Configuration.TypeStringTransformer Configuration.TypeStringTransformer Configuration.TypeStringTransformer Property

定义

指定一个函数委托,用于转换配置文件中的类型字符串。Specifies a function delegate that is used to transform type strings in configuration files.

public:
 property Func<System::String ^, System::String ^> ^ TypeStringTransformer { Func<System::String ^, System::String ^> ^ get(); void set(Func<System::String ^, System::String ^> ^ value); };
public Func<string,string> TypeStringTransformer { get; set; }
member this.TypeStringTransformer : Func<string, string> with get, set
Public Property TypeStringTransformer As Func(Of String, String)

属性值

一个用于转换类型字符串的委托。A delegate that transforms type strings. 默认值为 nullThe default value is null.

注解

此属性使 .NET Framework 配置系统的使用者能够设置用于转换在配置文件中找到的类型字符串的函数委托。This property enables a consumer of the .NET Framework configuration system to set a function delegate that is used to transform type strings found in configuration files. Visual Studio 2010Visual Studio 2010如果项目面向的是早期版本的 .NET Framework,则使用此属性。uses this property when a project is targeted for an earlier version of the .NET Framework. 当更新配置文件时,函数确保为 .NET Framework 的目标版本正确设置类型字符串的格式。The function makes sure that type strings are formatted correctly for the targeted version of the .NET Framework when configuration files are updated.

适用于

另请参阅