PSObject.ToString PSObject.ToString PSObject.ToString PSObject.ToString PSObject.ToString PSObject.ToString Method

Definition

Overloads

ToString() ToString() ToString() ToString() ToString() ToString()

Returns the string representation for this object. A ToString CodeMethod or ScriptMethod will be used, if available. Enumerations items are concatenated using $ofs.

ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider)

Returns the string representation for this object. A ToString CodeMethod or ScriptMethod will be used, if available. Enumerations items are concatenated using $ofs.

ToString() ToString() ToString() ToString() ToString() ToString()

Returns the string representation for this object. A ToString CodeMethod or ScriptMethod will be used, if available. Enumerations items are concatenated using $ofs.

public:
 override System::String ^ ToString();
public:
 override Platform::String ^ ToString();
 override std::wstring ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

the string representation for baseObject

Exceptions

ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider)

Returns the string representation for this object. A ToString CodeMethod or ScriptMethod will be used, if available. Enumerations items are concatenated using $ofs.

public:
 virtual System::String ^ ToString(System::String ^ format, IFormatProvider ^ formatProvider);
public string ToString (string format, IFormatProvider formatProvider);
override this.ToString : string * IFormatProvider -> string
Public Function ToString (format As String, formatProvider As IFormatProvider) As String

Parameters

format
String String String String String String

repassed to baseObject's IFormatable if present

formatProvider
IFormatProvider IFormatProvider IFormatProvider IFormatProvider IFormatProvider IFormatProvider

repassed to baseObject's IFormatable if present

Returns

the string representation for baseObject

Exceptions

Applies to