共用方式為


ProjectRootElement.DefaultTargets Property

Definition

Gets or sets the value of DefaultTargets. If there is no DefaultTargets, returns empty string. If the value is null or empty, removes the attribute.

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

Property Value

The value of the DefaultTargets attribute, or an empty string if the DefaultTargets attribute is not present.

Remarks

Removes the DefaultTargets attribute if the value to set is an empty string or null.

Applies to