Adds an enumeration 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 AddEnumProperty ( _
Name As String _
) As VCRuntimeEnumProperty
用法
Dim instance As VCCustomBuildRule
Dim Name As String
Dim returnValue As VCRuntimeEnumProperty
returnValue = instance.AddEnumProperty(Name)
VCRuntimeEnumProperty AddEnumProperty(
string Name
)
VCRuntimeEnumProperty^ AddEnumProperty(
[InAttribute] String^ Name
)
function AddEnumProperty(
Name : String
) : VCRuntimeEnumProperty
Parameters
Name
Type: System.StringThe name of the enumeration property.
Return Value
Type: Microsoft.VisualStudio.VCProjectEngine.VCRuntimeEnumProperty
A VCRuntimeEnumProperty object.
Remarks
AddEnumProperty returns the new enumeration 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.