ValueSerializer.TypeReferences(Object, IValueSerializerContext) 메서드
정의
ValueSerializer에서 참조하는 형식의 열거형을 가져옵니다.Gets an enumeration of the types referenced by the ValueSerializer.
public:
virtual System::Collections::Generic::IEnumerable<Type ^> ^ TypeReferences(System::Object ^ value, System::Windows::Markup::IValueSerializerContext ^ context);
public virtual System.Collections.Generic.IEnumerable<Type> TypeReferences (object value, System.Windows.Markup.IValueSerializerContext context);
abstract member TypeReferences : obj * System.Windows.Markup.IValueSerializerContext -> seq<Type>
override this.TypeReferences : obj * System.Windows.Markup.IValueSerializerContext -> seq<Type>
Public Overridable Function TypeReferences (value As Object, context As IValueSerializerContext) As IEnumerable(Of Type)
매개 변수
- value
- Object
직렬화되는 값입니다.The value being serialized.
- context
- IValueSerializerContext
변환에 사용되는 컨텍스트 정보입니다.Context information that is used for conversion.
반환
이 직렬 변환기에서 변환하는 형식입니다.The types converted by this serializer.
설명
변환 하는 모든 형식은 ValueSerializer 반환 된 열거형에 포함 되어야 합니다.Any types a ValueSerializer converts should be included in the returned enumeration. 그러면 serializer가 직렬 변환기에서이 serializer가 변환 하는 형식에 대 한 충분 한 정보를 확보할 수 있습니다.This allows a serializer to ensure a de-serializer has enough information about the types this serializer converts.
이 메서드를 재정의 하는 것은 고급 시나리오입니다.Overriding this method is an advanced scenario. XAML 스키마 컨텍스트에서 사용할 수 있는 CLR type system ownertype 관계가 충분 한 정보를 보고 하지 않는 시스템을 구현 하는 경우에만 재정의가 필요 합니다.Overriding should only be necessary if you are implementing a system where CLR type system ownertype-property relationships available to a XAML schema context do not report enough information.
WPF 사용 정보WPF Usage Notes
WPFWPF속성 시스템은 TypeReferences 종속성 속성에 소유자를 추가할 수 있는 개념이 있으므로를 재정의 하는 내부 값 serializer를 구현 합니다.The WPFWPF property system implements an internal value serializer that overrides TypeReferences because a dependency property has a concept that it can have added owners. WPFWPF식에는 특별 한 내부 처리도 있습니다.expressions also have special internal handling.