Delen via


SymbolDisplayFormat.WithGlobalNamespaceStyle Method

Definition

Creates a copy of the SymbolDisplayFormat but with replaced SymbolDisplayGlobalNamespaceStyle.

public:
 Microsoft::CodeAnalysis::SymbolDisplayFormat ^ WithGlobalNamespaceStyle(Microsoft::CodeAnalysis::SymbolDisplayGlobalNamespaceStyle style);
public Microsoft.CodeAnalysis.SymbolDisplayFormat WithGlobalNamespaceStyle (Microsoft.CodeAnalysis.SymbolDisplayGlobalNamespaceStyle style);
member this.WithGlobalNamespaceStyle : Microsoft.CodeAnalysis.SymbolDisplayGlobalNamespaceStyle -> Microsoft.CodeAnalysis.SymbolDisplayFormat
Public Function WithGlobalNamespaceStyle (style As SymbolDisplayGlobalNamespaceStyle) As SymbolDisplayFormat

Parameters

style
SymbolDisplayGlobalNamespaceStyle

An object specifying parameters on how namespace symbols should be formatted.

Returns

A duplicate of the SymbolDisplayFormat, with a replaced set of SymbolDisplayGlobalNamespaceStyle.

Applies to