WebHttpBehavior.DefaultOutgoingResponseFormat 属性
定义
获取或设置默认传出响应格式。Gets or sets the default outgoing response format.
public:
virtual property System::ServiceModel::Web::WebMessageFormat DefaultOutgoingResponseFormat { System::ServiceModel::Web::WebMessageFormat get(); void set(System::ServiceModel::Web::WebMessageFormat value); };
public virtual System.ServiceModel.Web.WebMessageFormat DefaultOutgoingResponseFormat { get; set; }
member this.DefaultOutgoingResponseFormat : System.ServiceModel.Web.WebMessageFormat with get, set
Public Overridable Property DefaultOutgoingResponseFormat As WebMessageFormat
属性值
WebMessageFormat 枚举中定义的值之一。One of the values defined in the WebMessageFormat enumeration.
注解
如果 WebGetAttribute 或 WebInvokeAttribute 未显式设置 OutgoingResponseFormat 属性,则此属性的值将用作操作的响应格式。If the WebGetAttribute or WebInvokeAttribute does not explicitly set the OutgoingResponseFormat property, the value of this property is used as the response format for the operation. 默认值为 Xml。The default value is Xml.