QueryBuilder.FilterByAssociatedInstance Method

Definition

Modifies the query, so that it returns only objects associated with associatedInstance

public:
 virtual void FilterByAssociatedInstance(System::Object ^ associatedInstance, System::String ^ associationName, System::String ^ sourceRole, System::String ^ resultRole, Microsoft::PowerShell::Cmdletization::BehaviorOnNoMatch behaviorOnNoMatch);
public:
 virtual void FilterByAssociatedInstance(Platform::Object ^ associatedInstance, Platform::String ^ associationName, Platform::String ^ sourceRole, Platform::String ^ resultRole, Microsoft::PowerShell::Cmdletization::BehaviorOnNoMatch behaviorOnNoMatch);
 virtual void FilterByAssociatedInstance(winrt::Windows::Foundation::IInspectable const & associatedInstance, std::wstring const & associationName, std::wstring const & sourceRole, std::wstring const & resultRole, Microsoft::PowerShell::Cmdletization::BehaviorOnNoMatch behaviorOnNoMatch);
public virtual void FilterByAssociatedInstance (object associatedInstance, string associationName, string sourceRole, string resultRole, Microsoft.PowerShell.Cmdletization.BehaviorOnNoMatch behaviorOnNoMatch);
abstract member FilterByAssociatedInstance : obj * string * string * string * Microsoft.PowerShell.Cmdletization.BehaviorOnNoMatch -> unit
override this.FilterByAssociatedInstance : obj * string * string * string * Microsoft.PowerShell.Cmdletization.BehaviorOnNoMatch -> unit
Public Overridable Sub FilterByAssociatedInstance (associatedInstance As Object, associationName As String, sourceRole As String, resultRole As String, behaviorOnNoMatch As BehaviorOnNoMatch)

Parameters

associatedInstance
Object

Object that query results have to be associated with.

associationName
String

Name of the association.

sourceRole
String

Name of the role that query results have in the association.

resultRole
String

Name of the role that associatedInstance has in the association.

behaviorOnNoMatch
BehaviorOnNoMatch

Describes how to handle filters that didn't match any objects

Applies to