JsonMetadataServices.CreateStackInfo 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| 속성 | Description |
|---|---|
| CreateStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>) |
에 할당할 수 있는 형식에 대한 메타데이터를 Stack<T>만듭니다. |
| CreateStackInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>) |
에 할당할 수 있는 형식에 대한 메타데이터를 Stack만듭니다. |
CreateStackInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)
에 할당할 수 있는 형식에 대한 메타데이터를 Stack<T>만듭니다.
public:
generic <typename TCollection, typename TElement>
where TCollection : System::Collections::Generic::Stack<TElement> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateStackInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateStackInfo<TCollection,TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.Stack<TElement>;
static member CreateStackInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.Stack<'Element>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.Stack<'Element>)> (requires 'Collection :> System.Collections.Generic.Stack<'Element>)
Public Shared Function CreateStackInfo(Of TCollection As Stack(Of TElement), TElement As Stack(Of TElement)) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)
형식 매개 변수
- TCollection
형식의 제네릭 정의입니다.
- TElement
요소 형식의 제네릭 정의입니다.
매개 변수
- options
- JsonSerializerOptions
JsonSerializerOptions 직렬화 및 역직렬화에 사용할 수 있습니다.
- collectionInfo
- JsonCollectionInfoValues<TCollection>
컬렉션 형식에 대한 serialization 메타데이터를 제공합니다.
반품
지정된 형식에 대한 serialization 메타데이터입니다.
설명
이 API는 System.Text.Json 원본 생성기의 출력에서 사용하기 위한 것이며 직접 호출해서는 안 됩니다.
적용 대상
CreateStackInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)
에 할당할 수 있는 형식에 대한 메타데이터를 Stack만듭니다.
public:
generic <typename TCollection>
where TCollection : System::Collections::IEnumerable static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateStackInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo, Action<TCollection, System::Object ^> ^ addFunc);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateStackInfo<TCollection>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo, Action<TCollection,object?> addFunc) where TCollection : System.Collections.IEnumerable;
static member CreateStackInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.IEnumerable)> * Action<'Collection, obj (requires 'Collection :> System.Collections.IEnumerable)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.IEnumerable)> (requires 'Collection :> System.Collections.IEnumerable)
Public Shared Function CreateStackInfo(Of TCollection As IEnumerable) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection), addFunc As Action(Of TCollection, Object)) As JsonTypeInfo(Of TCollection)
형식 매개 변수
- TCollection
형식의 제네릭 정의입니다.
매개 변수
- options
- JsonSerializerOptions
JsonSerializerOptions 직렬화 및 역직렬화에 사용할 수 있습니다.
- collectionInfo
- JsonCollectionInfoValues<TCollection>
컬렉션 형식에 대한 serialization 메타데이터를 제공합니다.
반품
지정된 형식에 대한 serialization 메타데이터입니다.
설명
이 API는 System.Text.Json 원본 생성기의 출력에서 사용하기 위한 것이며 직접 호출해서는 안 됩니다.