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 string ToString ();

Returns

The equivalent string representation of this XamlTypeName.

Remarks

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

Applies to

.NET Framework 4.8.1 en andere versies
Product Versies
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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 string ToString (System.Xaml.INamespacePrefixLookup prefixLookup);

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

.NET Framework 4.8.1 en andere versies
Product Versies
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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 string ToString (System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName> typeNameList, System.Xaml.INamespacePrefixLookup prefixLookup);

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

.NET Framework 4.8.1 en andere versies
Product Versies
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9