BuildProperty.Explicit(BuildProperty to String) 运算符

定义

BuildProperty 转换为 StringConverts a BuildProperty to a String.

public:
 static explicit operator System::String ^(Microsoft::Build::BuildEngine::BuildProperty ^ propertyToCast);
public static explicit operator string (Microsoft.Build.BuildEngine.BuildProperty propertyToCast);
static member op_Explicit : Microsoft.Build.BuildEngine.BuildProperty -> string
Public Shared Narrowing Operator CType (propertyToCast As BuildProperty) As String

参数

propertyToCast
BuildProperty

要转换为字符串的 BuildPropertyThe BuildProperty to convert to a string.

返回

String

一个 String,它的内容与 propertyToCast 参数的 Value 属性相同。A String, whose contents are the same as the Value property of the propertyToCast parameter.

注解

此运算符的等效方法是 BuildProperty.ToString()The equivalent method for this operator is BuildProperty.ToString()

适用于