LicenseProvider.GetLicense(LicenseContext, Type, Object, Boolean) 메서드

정의

파생 클래스에서 재정의되는 경우 컨텍스트가 제공되고 라이선스 거부가 예외를 throw하는지 여부에 따라 인스턴스 또는 구성 요소 형식에 대한 라이선스를 가져옵니다.

public:
 abstract System::ComponentModel::License ^ GetLicense(System::ComponentModel::LicenseContext ^ context, Type ^ type, System::Object ^ instance, bool allowExceptions);
public abstract System.ComponentModel.License GetLicense(System.ComponentModel.LicenseContext context, Type type, object instance, bool allowExceptions);
abstract member GetLicense : System.ComponentModel.LicenseContext * Type * obj * bool -> System.ComponentModel.License
Public MustOverride Function GetLicense (context As LicenseContext, type As Type, instance As Object, allowExceptions As Boolean) As License

매개 변수

context
LicenseContext

LicenseContext 사용이 허가된 개체를 사용할 수 있는 위치를 지정하는 A입니다.

type
Type

라이선스를 요청하는 구성 요소를 나타내는 A Type 입니다.

instance
Object

라이선스를 요청하는 개체입니다.

allowExceptions
Boolean

true 구성 요소에 라이선스를 LicenseException 부여할 수 없을 때 throw되어야 하는 경우 , 그렇지 않으면 false.

반품

유효한 입니다 License.

구현자 참고

상속할 때 라이선스 키에 LicenseProvider대한 유효성 검사 방법을 구현하려면 재정 GetLicense(LicenseContext, Type, Object, Boolean) 의해야 합니다.

적용 대상

추가 정보