編集

次の方法で共有


XamlSchemaContext.SupportMarkupExtensionsWithDuplicateArity Property

Definition

Gets a value that specifies whether a XAML schema and its context support markup extensions that have two constructors with the same arity (number of input parameters).

public:
 property bool SupportMarkupExtensionsWithDuplicateArity { bool get(); };
public bool SupportMarkupExtensionsWithDuplicateArity { get; }
member this.SupportMarkupExtensionsWithDuplicateArity : bool
Public ReadOnly Property SupportMarkupExtensionsWithDuplicateArity As Boolean

Property Value

true if the schema context permits markup extensions that have duplicate arity; otherwise, false. The default is false.

Remarks

This property returns the XamlSchemaContextSettings.SupportMarkupExtensionsWithDuplicateArity value that is established in the settings for the XamlSchemaContext(XamlSchemaContextSettings) constructor signature. If other signatures are used for construction or if XamlSchemaContextSettings.SupportMarkupExtensionsWithDuplicateArity is not specifically set to true, the value of this property is false.

Duplicate arity of markup extensions is not specifically addressed by the XAML specification [MS-XAML], section 6.6.7.2. This is because formation of the XAML information item for a markup extension is identical regardless of duplicate arity that might exist in the markup extension implementation. Only the actual invocation of the markup extension and its ProvideValue exposes any issues associated with duplicate arity. Behavior for handling duplicate arity is thus undefined and is left up to each implementing XAML schema context and its XAML writer integration. The default XAML schema context as implemented for .NET Framework XAML Services operations does not support duplicate arity; various .NET Framework XAML Services APIs will throw exceptions when processing markup extension usage with underlying duplicate arity.

For more information about defining markup extensions, see Markup Extensions for XAML Overview.

Applies to