C# 클래스 Ninject.NamedAttribute

Indicates that the decorated member should only be injected using binding(s) registered with the specified name.
상속: ConstraintAttribute
파일 보기 프로젝트 열기: ninject/Ninject 1 사용 예제들

공개 메소드들

메소드 설명
Matches ( IBindingMetadata metadata ) : bool

Determines whether the specified binding metadata matches the constraint.

NamedAttribute ( string name ) : System.Diagnostics.Contracts

Initializes a new instance of the NamedAttribute class.

메소드 상세

Matches() 공개 메소드

Determines whether the specified binding metadata matches the constraint.
public Matches ( IBindingMetadata metadata ) : bool
metadata IBindingMetadata The metadata in question.
리턴 bool

NamedAttribute() 공개 메소드

Initializes a new instance of the NamedAttribute class.
public NamedAttribute ( string name ) : System.Diagnostics.Contracts
name string The name of the binding(s) to use.
리턴 System.Diagnostics.Contracts