共用方式為


ODataStreamReferenceValue.ContentType 屬性

取得或設定內容媒體類型。

命名空間:  Microsoft.Data.OData
組件:  Microsoft.Data.OData (在 Microsoft.Data.OData.dll 中)

語法

'宣告
Public Property ContentType As String
    Get
    Set
'用途
Dim instance As ODataStreamReferenceValue
Dim value As String

value = instance.ContentType

instance.ContentType = value
public string ContentType { get; set; }
public:
property String^ ContentType {
    String^ get ();
    void set (String^ value);
}
member ContentType : string with get, set
function get ContentType () : String
function set ContentType (value : String)

屬性值

型別:System.String
內容媒體類型。

請參閱

參考

ODataStreamReferenceValue 類別

Microsoft.Data.OData 命名空間