次の方法で共有


PolicyList.SetDefault Method

Definition

Overloads

SetDefault(Type, IBuilderPolicy)
SetDefault<TPolicyInterface>(TPolicyInterface)

SetDefault(Type, IBuilderPolicy)

public:
 void SetDefault(Type ^ policyInterface, Microsoft::Practices::ObjectBuilder::IBuilderPolicy ^ policy);
public void SetDefault (Type policyInterface, Microsoft.Practices.ObjectBuilder.IBuilderPolicy policy);
member this.SetDefault : Type * Microsoft.Practices.ObjectBuilder.IBuilderPolicy -> unit
Public Sub SetDefault (policyInterface As Type, policy As IBuilderPolicy)

Parameters

policyInterface
Type

Applies to

SetDefault<TPolicyInterface>(TPolicyInterface)

public:
generic <typename TPolicyInterface>
 where TPolicyInterface : Microsoft::Practices::ObjectBuilder::IBuilderPolicy void SetDefault(TPolicyInterface policy);
public void SetDefault<TPolicyInterface> (TPolicyInterface policy) where TPolicyInterface : Microsoft.Practices.ObjectBuilder.IBuilderPolicy;
member this.SetDefault : 'PolicyInterface -> unit (requires 'PolicyInterface :> Microsoft.Practices.ObjectBuilder.IBuilderPolicy)
Public Sub SetDefault(Of TPolicyInterface As IBuilderPolicy) (policy As TPolicyInterface)

Type Parameters

TPolicyInterface

Parameters

policy
TPolicyInterface

Applies to