Partilhar via


Struct.definitionString Method

Definition

Returns a description of the names and types of the elements in the struct.

public:
 virtual System::String ^ definitionString();
public virtual string definitionString ();
abstract member definitionString : unit -> string
override this.definitionString : unit -> string
Public Overridable Function definitionString () As String

Returns

A string that contains a definition of the struct.

Remarks

You can use the definitionString method to create a copy of a struct by using the syntax: newStruct = new struct(oldStruct.definitionString());

Applies to