ClientCodeGenerationOptions.ClientRootNamespace Property
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Gets or sets the root namespace of the target project.
Namespace: Microsoft.ServiceModel.DomainServices.Tools
Assembly: Microsoft.ServiceModel.DomainServices.Tools (in Microsoft.ServiceModel.DomainServices.Tools.dll)
Syntax
'Declaration
Public Property ClientRootNamespace As String
Get
Set
'Usage
Dim instance As ClientCodeGenerationOptions
Dim value As String
value = instance.ClientRootNamespace
instance.ClientRootNamespace = value
public string ClientRootNamespace { get; set; }
public:
property String^ ClientRootNamespace {
String^ get ();
void set (String^ value);
}
member ClientRootNamespace : string with get, set
function get ClientRootNamespace () : String
function set ClientRootNamespace (value : String)
Property Value
Type: System.String
A value that contains the root namespace of the target project.
Remarks
If the value is not nulla null reference (Nothing in Visual Basic) or empty, the code generator will try to change the generated namespaces in such a way that the client and server namespaces match. Use this to get correct code generation for Visual Basic projects with nonempty root namespace.