ImageSource.ToString 方法

定義

根據目前的文化特性,建立這個物件的字串表示。Creates a string representation of this object based on the current culture.

多載

ToString()

根據目前的文化特性,建立這個物件的字串表示。Creates a string representation of this object based on the current culture.

ToString(IFormatProvider)

根據傳入的 IFormatProvider,建立這個物件的字串表示。Creates a string representation of this object based on the IFormatProvider passed in. 如果提供者為 null,則會使用 CurrentCultureIf the provider is null, the CurrentCulture is used.

ToString()

根據目前的文化特性,建立這個物件的字串表示。Creates a string representation of this object based on the current culture.

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

傳回

這個物件的字串表示。A string representation of this object.

ToString(IFormatProvider)

根據傳入的 IFormatProvider,建立這個物件的字串表示。Creates a string representation of this object based on the IFormatProvider passed in. 如果提供者為 null,則會使用 CurrentCultureIf the provider is null, the CurrentCulture is used.

public:
 System::String ^ ToString(IFormatProvider ^ provider);
public string ToString (IFormatProvider provider);
override this.ToString : IFormatProvider -> string
Public Function ToString (provider As IFormatProvider) As String

參數

provider
IFormatProvider

IFormatProvider,提供特定文化特性的格式資訊。An IFormatProvider that supplies culture-specific formatting information.

傳回

這個物件的字串表示。A string representation of this object.

適用於