IMemberCreationService.CreateProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したプロパティ名、プロパティ型、および属性を使用して、指定したクラスにプロパティを作成します。
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
フィールドの名前を定義する文字列。
- attributes
- AttributeInfo[]
プロパティに割り当てるすべての属性に関する情報を格納する AttributeInfo 配列。
- emitDependencyProperty
- Boolean
true プロパティに関連付けられている依存関係プロパティを出力する場合。それ以外の場合は false。
- isMetaProperty
- Boolean
true メタプロパティとしてプロパティを作成する場合。それ以外の場合は false。
- isAttached
- Boolean
true 出力される依存関係プロパティの IsAttached プロパティが true に設定されていることを示す場合は。それ以外の場合は false。
- isReadOnly
- Boolean
true プロパティを読み取り専用プロパティとして作成する場合。プロパティを読み取り/書き込みプロパティとして作成 false 。