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

내보낸 종속성 속성의 속성이 해당 속성으로 설정되어 있음을 나타내려면 이고 , 그렇지 않으면 .

ownerType
Type

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

isReadOnly
Boolean

true 속성을 읽기 전용 속성으로 만들려면 false 속성을 읽기/쓰기 속성으로 만듭니다.

적용 대상