DataServiceBehavior.AlwaysUseDefaultXmlNamespaceForRootElement Property
If set to true, then the root element of each payload will be written in the default (non-prefix-qualified) namespace of the document. All other elements in the same namespace will also not have prefixes.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Property AlwaysUseDefaultXmlNamespaceForRootElement As Boolean
Get
Set
'Usage
Dim instance As DataServiceBehavior
Dim value As Boolean
value = instance.AlwaysUseDefaultXmlNamespaceForRootElement
instance.AlwaysUseDefaultXmlNamespaceForRootElement = value
public bool AlwaysUseDefaultXmlNamespaceForRootElement { get; set; }
public:
property bool AlwaysUseDefaultXmlNamespaceForRootElement {
bool get ();
void set (bool value);
}
member AlwaysUseDefaultXmlNamespaceForRootElement : bool with get, set
function get AlwaysUseDefaultXmlNamespaceForRootElement () : boolean
function set AlwaysUseDefaultXmlNamespaceForRootElement (value : boolean)
Property Value
Type: System.Boolean