CustomReflectionContext.CreateProperty 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
메서드에서 지정한 대로 형식에 추가할 속성을 나타내는 개체를 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
만들 속성의 이름입니다.
반품
속성을 나타내는 개체입니다.
설명
이 메서드에서 반환되는 개체는 전체 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
만들 속성의 이름입니다.
- propertyCustomAttributes
- IEnumerable<Attribute>
속성에 적용할 사용자 지정 특성의 컬렉션입니다.
- getterCustomAttributes
- IEnumerable<Attribute>
속성의 접근자에 적용할 사용자 지정 특성의 컬렉션입니다 get .
- setterCustomAttributes
- IEnumerable<Attribute>
속성의 접근자에 적용할 사용자 지정 특성의 컬렉션입니다 set .
반품
속성을 나타내는 개체입니다.
설명
이 메서드에서 반환되는 개체는 전체 PropertyInfo 개체가 아니며 메서드의 AddProperties 컨텍스트에서만 사용해야 합니다.