Share via


ClientCodeGenerationOptions.ServerRootNamespace 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 server project.

Namespace:  Microsoft.ServiceModel.DomainServices.Tools
Assembly:  Microsoft.ServiceModel.DomainServices.Tools (in Microsoft.ServiceModel.DomainServices.Tools.dll)

Syntax

'Declaration
Public Property ServerRootNamespace As String
    Get
    Set
'Usage
Dim instance As ClientCodeGenerationOptions
Dim value As String

value = instance.ServerRootNamespace

instance.ServerRootNamespace = value
public string ServerRootNamespace { get; set; }
public:
property String^ ServerRootNamespace {
    String^ get ();
    void set (String^ value);
}
member ServerRootNamespace : string with get, set
function get ServerRootNamespace () : String
function set ServerRootNamespace (value : String)

Property Value

Type: System.String
A value that contains the root namespace of the server 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.

See Also

Reference

ClientCodeGenerationOptions Class

Microsoft.ServiceModel.DomainServices.Tools Namespace