MediaType 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MediaType(StringSegment) |
初始化 MediaType 執行個體。 |
MediaType(String) |
初始化 MediaType 執行個體。 |
MediaType(String, Int32, Nullable<Int32>) |
初始化 Microsoft.AspNetCore.Mvc.Formatters.MediaType.MediaTypeParameterParser 執行個體。 |
MediaType(StringSegment)
- 來源:
- MediaType.cs
- 來源:
- MediaType.cs
初始化 MediaType 執行個體。
public:
MediaType(Microsoft::Extensions::Primitives::StringSegment mediaType);
public MediaType (Microsoft.Extensions.Primitives.StringSegment mediaType);
new Microsoft.AspNetCore.Mvc.Formatters.MediaType : Microsoft.Extensions.Primitives.StringSegment -> Microsoft.AspNetCore.Mvc.Formatters.MediaType
Public Sub New (mediaType As StringSegment)
參數
- mediaType
- StringSegment
StringSegment具有媒體類型的 。
適用於
MediaType(String)
- 來源:
- MediaType.cs
- 來源:
- MediaType.cs
初始化 MediaType 執行個體。
public:
MediaType(System::String ^ mediaType);
public MediaType (string mediaType);
new Microsoft.AspNetCore.Mvc.Formatters.MediaType : string -> Microsoft.AspNetCore.Mvc.Formatters.MediaType
Public Sub New (mediaType As String)
參數
適用於
MediaType(String, Int32, Nullable<Int32>)
- 來源:
- MediaType.cs
- 來源:
- MediaType.cs
初始化 Microsoft.AspNetCore.Mvc.Formatters.MediaType.MediaTypeParameterParser 執行個體。
public:
MediaType(System::String ^ mediaType, int offset, Nullable<int> length);
public MediaType (string mediaType, int offset, int? length);
new Microsoft.AspNetCore.Mvc.Formatters.MediaType : string * int * Nullable<int> -> Microsoft.AspNetCore.Mvc.Formatters.MediaType
Public Sub New (mediaType As String, offset As Integer, length As Nullable(Of Integer))
參數
- offset
- Int32
剖析開始位置中的 mediaType
位移。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應