共用方式為


CodeParameter2.DefaultValue Property

Definition

Gets or sets the literal value that exists in the code.

public:
 property System::String ^ DefaultValue { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ DefaultValue { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(201)]
public string DefaultValue { [System.Runtime.InteropServices.DispId(201)] get; [System.Runtime.InteropServices.DispId(201)] set; }
[<System.Runtime.InteropServices.DispId(201)>]
[<get: System.Runtime.InteropServices.DispId(201)>]
[<set: System.Runtime.InteropServices.DispId(201)>]
member this.DefaultValue : string with get, set
Public Property DefaultValue As String

Property Value

The literal value that exists in the code.

Attributes

Remarks

Optional properties can have default values assigned.

Note

The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same.

Applies to