XamlType.GetPositionalParameters(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
For markup extension types, returns the types of the positional parameters that are supported in a specific markup extension usage for this XamlType.
public:
System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ GetPositionalParameters(int parameterCount);
public System.Collections.Generic.IList<System.Xaml.XamlType> GetPositionalParameters (int parameterCount);
member this.GetPositionalParameters : int -> System.Collections.Generic.IList<System.Xaml.XamlType>
Public Function GetPositionalParameters (parameterCount As Integer) As IList(Of XamlType)
Parameters
- parameterCount
- Int32
The count (arity) of the particular syntax or constructor mode that you want information about.
Returns
A list of XamlType values, where each XamlType is the type for that position in the syntax. You must specify the types in the same order when you supply markup input for the markup extension.
Remarks
This API is only relevant if this XamlType represents a markup extension (IsMarkupExtension is true
).
The input parameterCount
is not for requesting the type of a specific positional parameter. It is for specifying the arity of a markup extension usage. Markup extension usage often has multiple "signatures" and uses different parameter arity (count) of positional parameters to differentiate. However, you can configure a schema context to allow duplicate arities and use types of the positional parameters for differentiation. For more information, see SupportMarkupExtensionsWithDuplicateArity. For a specific arity (count), the parameter positions and types can vary. To get the positional type of a specific arity's markup extension usage, you first call GetPositionalParameters specifying the arity count. Then get the item at that position from the returned collection.
Calls to this method can invoke LookupPositionalParameters overrides on XamlType derived classes.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기