CustomReflectionContext.CreateProperty 메서드

정의

메서드에서 지정한 대로 형식에 추가할 속성을 나타내는 개체를 AddProperties(Type) 만듭니다.

오버로드

Name Description
CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>)

메서드와 함께 사용할 형식에 추가할 속성을 나타내는 개체를 AddProperties(Type) 만듭니다.

CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>, IEnumerable<Attribute>, IEnumerable<Attribute>, IEnumerable<Attribute>)

메서드와 함께 AddProperties(Type) 사용하고 지정된 사용자 지정 특성을 사용하여 형식에 추가할 속성을 나타내는 개체를 만듭니다.

CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>)

메서드와 함께 사용할 형식에 추가할 속성을 나타내는 개체를 AddProperties(Type) 만듭니다.

protected:
 System::Reflection::PropertyInfo ^ CreateProperty(Type ^ propertyType, System::String ^ name, Func<System::Object ^, System::Object ^> ^ getter, Action<System::Object ^, System::Object ^> ^ setter);
protected System.Reflection.PropertyInfo CreateProperty(Type propertyType, string name, Func<object,object> getter, Action<object,object> setter);
member this.CreateProperty : Type * string * Func<obj, obj> * Action<obj, obj> -> System.Reflection.PropertyInfo
Protected Function CreateProperty (propertyType As Type, name As String, getter As Func(Of Object, Object), setter As Action(Of Object, Object)) As PropertyInfo

매개 변수

propertyType
Type

만들 속성의 형식입니다.

name
String

만들 속성의 이름입니다.

getter
Func<Object,Object>

속성의 접근자를 나타내는 개체입니다 get .

setter
Action<Object,Object>

속성의 접근자를 나타내는 개체입니다 set .

반품

속성을 나타내는 개체입니다.

설명

이 메서드에서 반환되는 개체는 전체 PropertyInfo 개체가 아니며 메서드의 AddProperties 컨텍스트에서만 사용해야 합니다.

적용 대상

CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>, IEnumerable<Attribute>, IEnumerable<Attribute>, IEnumerable<Attribute>)

메서드와 함께 AddProperties(Type) 사용하고 지정된 사용자 지정 특성을 사용하여 형식에 추가할 속성을 나타내는 개체를 만듭니다.

protected:
 System::Reflection::PropertyInfo ^ CreateProperty(Type ^ propertyType, System::String ^ name, Func<System::Object ^, System::Object ^> ^ getter, Action<System::Object ^, System::Object ^> ^ setter, System::Collections::Generic::IEnumerable<Attribute ^> ^ propertyCustomAttributes, System::Collections::Generic::IEnumerable<Attribute ^> ^ getterCustomAttributes, System::Collections::Generic::IEnumerable<Attribute ^> ^ setterCustomAttributes);
protected System.Reflection.PropertyInfo CreateProperty(Type propertyType, string name, Func<object,object> getter, Action<object,object> setter, System.Collections.Generic.IEnumerable<Attribute> propertyCustomAttributes, System.Collections.Generic.IEnumerable<Attribute> getterCustomAttributes, System.Collections.Generic.IEnumerable<Attribute> setterCustomAttributes);
member this.CreateProperty : Type * string * Func<obj, obj> * Action<obj, obj> * seq<Attribute> * seq<Attribute> * seq<Attribute> -> System.Reflection.PropertyInfo
Protected Function CreateProperty (propertyType As Type, name As String, getter As Func(Of Object, Object), setter As Action(Of Object, Object), propertyCustomAttributes As IEnumerable(Of Attribute), getterCustomAttributes As IEnumerable(Of Attribute), setterCustomAttributes As IEnumerable(Of Attribute)) As PropertyInfo

매개 변수

propertyType
Type

만들 속성의 형식입니다.

name
String

만들 속성의 이름입니다.

getter
Func<Object,Object>

속성의 접근자를 나타내는 개체입니다 get .

setter
Action<Object,Object>

속성의 접근자를 나타내는 개체입니다 set .

propertyCustomAttributes
IEnumerable<Attribute>

속성에 적용할 사용자 지정 특성의 컬렉션입니다.

getterCustomAttributes
IEnumerable<Attribute>

속성의 접근자에 적용할 사용자 지정 특성의 컬렉션입니다 get .

setterCustomAttributes
IEnumerable<Attribute>

속성의 접근자에 적용할 사용자 지정 특성의 컬렉션입니다 set .

반품

속성을 나타내는 개체입니다.

설명

이 메서드에서 반환되는 개체는 전체 PropertyInfo 개체가 아니며 메서드의 AddProperties 컨텍스트에서만 사용해야 합니다.

적용 대상