ODataMessageWriterSettings.EnableWcfDataServicesServerBehavior Method (Boolean, Boolean)
Specifies whether the WCF data services server behavior is enabled.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub EnableWcfDataServicesServerBehavior ( _
usesV1Provider As Boolean, _
alwaysUseDefaultXmlNamespaceForRootElement As Boolean _
)
'Usage
Dim instance As ODataMessageWriterSettings
Dim usesV1Provider As Boolean
Dim alwaysUseDefaultXmlNamespaceForRootElement As Boolean
instance.EnableWcfDataServicesServerBehavior(usesV1Provider, _
alwaysUseDefaultXmlNamespaceForRootElement)
public void EnableWcfDataServicesServerBehavior(
bool usesV1Provider,
bool alwaysUseDefaultXmlNamespaceForRootElement
)
public:
void EnableWcfDataServicesServerBehavior(
bool usesV1Provider,
bool alwaysUseDefaultXmlNamespaceForRootElement
)
member EnableWcfDataServicesServerBehavior :
usesV1Provider:bool *
alwaysUseDefaultXmlNamespaceForRootElement:bool -> unit
public function EnableWcfDataServicesServerBehavior(
usesV1Provider : boolean,
alwaysUseDefaultXmlNamespaceForRootElement : boolean
)
Parameters
- usesV1Provider
Type: System.Boolean
true if the server uses V1 provider, otherwise, false.
- alwaysUseDefaultXmlNamespaceForRootElement
Type: System.Boolean
true if the server is configured to leave prefixes off all root elements and anything else in the same namespace, otherwise, false.
See Also
Reference
ODataMessageWriterSettings Class