संपादित करें

इसके माध्यम से साझा किया गया


RuntimeArgument.OverloadGroupNames Property

Definition

Gets a list of the overload groups that this RuntimeArgument belongs to.

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ OverloadGroupNames { System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<string> OverloadGroupNames { get; }
member this.OverloadGroupNames : System.Collections.ObjectModel.ReadOnlyCollection<string>
Public ReadOnly Property OverloadGroupNames As ReadOnlyCollection(Of String)

Property Value

A list of overload group names.

Remarks

Arguments can be grouped together to form valid overload groups. OverloadGroupNames identifies the overload groups to which this argument belongs. An overload group cannot be a subset or an equivalent set of another overload group. The only exception to this rule is a subset that contains only arguments where IsRequired is false. Overload groups can overlap but it is an error if the intersection of the groups contains all the required arguments of one or both the overload groups.

An overload group is considered bound if all the IsRequired arguments in the group are bound. If a group has zero IsRequired arguments and at least one argument bound, then the group is considered bound. It is an error if none of the groups are bound unless one overload group has no IsRequired arguments in it. Binding IsRequired arguments from more than one overload group is not permitted. It is an error to have more than one overload group bound, that is, all required arguments in one overload group are bound and any argument in another overload group is also bound.

Any violation of the preceding rules results in a ValidationException being thrown when the containing activity is prepared for execution.

For more information, see OverloadGroupAttribute.

Applies to