Adds a string property to the custom build rule with the given name.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
声明
Function AddStringProperty ( _
Name As String _
) As VCRuntimeStringProperty
用法
Dim instance As VCCustomBuildRule
Dim Name As String
Dim returnValue As VCRuntimeStringProperty
returnValue = instance.AddStringProperty(Name)
VCRuntimeStringProperty AddStringProperty(
string Name
)
VCRuntimeStringProperty^ AddStringProperty(
[InAttribute] String^ Name
)
function AddStringProperty(
Name : String
) : VCRuntimeStringProperty
Parameters
Name
Type: System.StringThe name of the string property.
Return Value
Type: Microsoft.VisualStudio.VCProjectEngine.VCRuntimeStringProperty
A VCRuntimeStringProperty object.
Remarks
AddStringProperty returns the new string property.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.