IMemberCreationService.CreateProperty 메서드

정의

지정된 속성 이름, 속성 형식 및 특성을 사용하여 지정된 클래스에서 속성을 만듭니다.

public:
 void CreateProperty(System::String ^ className, System::String ^ propertyName, Type ^ propertyType, cli::array <System::Workflow::ComponentModel::Compiler::AttributeInfo ^> ^ attributes, bool emitDependencyProperty, bool isMetaProperty, bool isAttached, Type ^ ownerType, bool isReadOnly);
public void CreateProperty (string className, string propertyName, Type propertyType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty, bool isAttached, Type ownerType, bool isReadOnly);
abstract member CreateProperty : string * string * Type * System.Workflow.ComponentModel.Compiler.AttributeInfo[] * bool * bool * bool * Type * bool -> unit
Public Sub CreateProperty (className As String, propertyName As String, propertyType As Type, attributes As AttributeInfo(), emitDependencyProperty As Boolean, isMetaProperty As Boolean, isAttached As Boolean, ownerType As Type, isReadOnly As Boolean)

매개 변수

className
String

필드를 추가할 클래스의 이름을 정의한 문자열입니다.

propertyName
String

필드 이름을 정의한 문자열입니다.

propertyType
Type

새 속성의 Type입니다.

attributes
AttributeInfo[]

속성에 할당할 모든 특성의 정보가 들어 있는 AttributeInfo 배열입니다.

emitDependencyProperty
Boolean

속성과 연결된 종속성 속성을 내보내려면 true이고, 그렇지 않으면 false입니다.

isMetaProperty
Boolean

속성을 메타 속성으로 만들려면 true이고, 그렇지 않으면 false입니다.

isAttached
Boolean

내보낸 종속성 속성에 true로 설정된 IsAttached 속성이 포함되어 있음을 나타내려면 true이고, 그렇지 않으면 false입니다.

ownerType
Type

종속성 속성을 선언하는 Type입니다.

isReadOnly
Boolean

속성을 읽기 전용 속성으로 만들려면 true이고, 속성을 읽기-쓰기 속성으로 만들려면 false입니다.

적용 대상