Proprietà HandleExceptionArgs.ResponseContentType
Ottiene il tipo di contenuto della risposta.
Spazio dei nomi System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Sintassi
'Dichiarazione
Public Property ResponseContentType As String
Get
Private Set
'Utilizzo
Dim instance As HandleExceptionArgs
Dim value As String
value = instance.ResponseContentType
public string ResponseContentType { get; private set; }
public:
property String^ ResponseContentType {
String^ get ();
private: void set (String^ value);
}
member ResponseContentType : string with get, private set
function get ResponseContentType () : String
private function set ResponseContentType (value : String)
Valore proprietà
Tipo: System.String
Il valore stringa che indica il formato della risposta.
Osservazioni
Tutti gli errori comportano un payload dell'errore inviato di nuovo dal servizio. Questa proprietà informa l'autore del servizio del formato che l'errore sarà restituito. Il valore di questa proprietà sarà sempre un tipo MIME IANA (Internet Assigned Numbers Authority) valido.