XamlTypeName.TryParse Method (String, IXamlNamespaceResolver, XamlTypeName)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides a XamlTypeName value based on a type name and an object that can resolve a markup prefix into a namespace.

Namespace:   System.Xaml.Schema
Assembly:  System.Xaml (in System.Xaml.dll)

public static bool TryParse(
	string typeName,
	IXamlNamespaceResolver namespaceResolver,
	out XamlTypeName result
)

Parameters

typeName
Type: System.String

The type name to create a XamlTypeName value for.

namespaceResolver
Type: System.Xaml.IXamlNamespaceResolver

An object or service provider that implements IXamlNamespaceResolver.

result
Type: System.Xaml.Schema.XamlTypeName

Out parameter that contains the created XamlTypeName if the return value is true.

Return Value

Type: System.Boolean

true if the parse was successful and result contains a useful value; otherwise, false.

Exception Condition
ArgumentNullException

typeName or namespaceResolver is null.

.NET Framework
Available since 4.0
Return to top
Show: