Condividi tramite


Rule.SwitchPrefix Property

Definition

The prefix to use for all property switches in this Rule for the case when this property Rule represent a tool.

public:
 property System::String ^ SwitchPrefix { System::String ^ get(); void set(System::String ^ value); };
public string SwitchPrefix { get; set; }
public string SwitchPrefix { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.SwitchPrefix : string with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.SwitchPrefix : string with get, set
Public Property SwitchPrefix As String

Property Value

Returns the prefix.

Attributes

Examples

For the VC++ CL task, WholeProgramOptimization is a boolean parameter. It's switch is GL and its switch prefix (inherited from the parent SwitchPrefix since it is not overridden by WholeProgramOptimization) is /. Thus the complete switch in the command line for this property would be /GL

Remarks

The value specified can be overridden by the value specified by a child BaseProperty's SwitchPrefix. This field is optional and culture invariant.

Applies to