RequiresServiceAttribute 생성자
RequiresServiceAttribute 클래스의 새 인스턴스를 초기화합니다.
네임스페이스: Microsoft.Windows.Design
어셈블리: Microsoft.Windows.Design.Extensibility(Microsoft.Windows.Design.Extensibility.dll)
구문
‘선언
Public Sub New ( _
serviceType As Type _
)
public RequiresServiceAttribute(
Type serviceType
)
public:
RequiresServiceAttribute(
Type^ serviceType
)
new :
serviceType:Type -> RequiresServiceAttribute
public function RequiresServiceAttribute(
serviceType : Type
)
매개 변수
- serviceType
형식: System.Type
클래스에 필요한 서비스 형식입니다.
설명
이 특성은 클래스가 지정된 서비스에 의존하며 해당 서비스를 사용할 수 있게 되기 전에는 클래스가 인스턴스화되지 않음을 나타냅니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
참고 항목
참조
Microsoft.Windows.Design 네임스페이스