Szerkesztés

Megosztás a következőn keresztül:


XamlTypeName.ToString Method

Definition

Converts the value of this XamlTypeName to its equivalent string representation.

Overloads

ToString()

Converts the value of this XamlTypeName to its equivalent string representation.

ToString(INamespacePrefixLookup)

Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of a type.

ToString(IList<XamlTypeName>, INamespacePrefixLookup)

Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of multiple types.

ToString()

Converts the value of this XamlTypeName to its equivalent string representation.

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

Returns

The equivalent string representation of this XamlTypeName.

Remarks

This signature is equivalent to calling ToString(INamespacePrefixLookup), passing null for prefixLookup. s

Applies to

ToString(INamespacePrefixLookup)

Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of a type.

public:
 System::String ^ ToString(System::Xaml::INamespacePrefixLookup ^ prefixLookup);
public string ToString (System.Xaml.INamespacePrefixLookup prefixLookup);
override this.ToString : System.Xaml.INamespacePrefixLookup -> string
Public Function ToString (prefixLookup As INamespacePrefixLookup) As String

Parameters

prefixLookup
INamespacePrefixLookup

A service reference for prefix lookup.

Returns

A prefixed usage string.

Exceptions

Namespace for this XamlTypeName is null.

-or-

Name is not valid.

-or-

Could not look up the prefix.

Applies to

ToString(IList<XamlTypeName>, INamespacePrefixLookup)

Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of multiple types.

public:
 static System::String ^ ToString(System::Collections::Generic::IList<System::Xaml::Schema::XamlTypeName ^> ^ typeNameList, System::Xaml::INamespacePrefixLookup ^ prefixLookup);
public static string ToString (System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName> typeNameList, System.Xaml.INamespacePrefixLookup prefixLookup);
static member ToString : System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName> * System.Xaml.INamespacePrefixLookup -> string
Public Shared Function ToString (typeNameList As IList(Of XamlTypeName), prefixLookup As INamespacePrefixLookup) As String

Parameters

typeNameList
IList<XamlTypeName>

A list of types.

prefixLookup
INamespacePrefixLookup

A service reference for prefix lookup.

Returns

A concatenated string of all type results.

Exceptions

prefixLookup or typeNameList is null.

Applies to