Udostępnij za pośrednictwem


SymbolDisplayFormat Constructor

Definition

Constructs a new instance of SymbolDisplayFormat accepting a variety of optional parameters.

public SymbolDisplayFormat (Microsoft.CodeAnalysis.SymbolDisplayGlobalNamespaceStyle globalNamespaceStyle = Microsoft.CodeAnalysis.SymbolDisplayGlobalNamespaceStyle.Omitted, Microsoft.CodeAnalysis.SymbolDisplayTypeQualificationStyle typeQualificationStyle = Microsoft.CodeAnalysis.SymbolDisplayTypeQualificationStyle.NameOnly, Microsoft.CodeAnalysis.SymbolDisplayGenericsOptions genericsOptions = Microsoft.CodeAnalysis.SymbolDisplayGenericsOptions.None, Microsoft.CodeAnalysis.SymbolDisplayMemberOptions memberOptions = Microsoft.CodeAnalysis.SymbolDisplayMemberOptions.None, Microsoft.CodeAnalysis.SymbolDisplayDelegateStyle delegateStyle = Microsoft.CodeAnalysis.SymbolDisplayDelegateStyle.NameOnly, Microsoft.CodeAnalysis.SymbolDisplayExtensionMethodStyle extensionMethodStyle = Microsoft.CodeAnalysis.SymbolDisplayExtensionMethodStyle.Default, Microsoft.CodeAnalysis.SymbolDisplayParameterOptions parameterOptions = Microsoft.CodeAnalysis.SymbolDisplayParameterOptions.None, Microsoft.CodeAnalysis.SymbolDisplayPropertyStyle propertyStyle = Microsoft.CodeAnalysis.SymbolDisplayPropertyStyle.NameOnly, Microsoft.CodeAnalysis.SymbolDisplayLocalOptions localOptions = Microsoft.CodeAnalysis.SymbolDisplayLocalOptions.None, Microsoft.CodeAnalysis.SymbolDisplayKindOptions kindOptions = Microsoft.CodeAnalysis.SymbolDisplayKindOptions.None, Microsoft.CodeAnalysis.SymbolDisplayMiscellaneousOptions miscellaneousOptions = Microsoft.CodeAnalysis.SymbolDisplayMiscellaneousOptions.None);
new Microsoft.CodeAnalysis.SymbolDisplayFormat : Microsoft.CodeAnalysis.SymbolDisplayGlobalNamespaceStyle * Microsoft.CodeAnalysis.SymbolDisplayTypeQualificationStyle * Microsoft.CodeAnalysis.SymbolDisplayGenericsOptions * Microsoft.CodeAnalysis.SymbolDisplayMemberOptions * Microsoft.CodeAnalysis.SymbolDisplayDelegateStyle * Microsoft.CodeAnalysis.SymbolDisplayExtensionMethodStyle * Microsoft.CodeAnalysis.SymbolDisplayParameterOptions * Microsoft.CodeAnalysis.SymbolDisplayPropertyStyle * Microsoft.CodeAnalysis.SymbolDisplayLocalOptions * Microsoft.CodeAnalysis.SymbolDisplayKindOptions * Microsoft.CodeAnalysis.SymbolDisplayMiscellaneousOptions -> Microsoft.CodeAnalysis.SymbolDisplayFormat
Public Sub New (Optional globalNamespaceStyle As SymbolDisplayGlobalNamespaceStyle = Microsoft.CodeAnalysis.SymbolDisplayGlobalNamespaceStyle.Omitted, Optional typeQualificationStyle As SymbolDisplayTypeQualificationStyle = Microsoft.CodeAnalysis.SymbolDisplayTypeQualificationStyle.NameOnly, Optional genericsOptions As SymbolDisplayGenericsOptions = Microsoft.CodeAnalysis.SymbolDisplayGenericsOptions.None, Optional memberOptions As SymbolDisplayMemberOptions = Microsoft.CodeAnalysis.SymbolDisplayMemberOptions.None, Optional delegateStyle As SymbolDisplayDelegateStyle = Microsoft.CodeAnalysis.SymbolDisplayDelegateStyle.NameOnly, Optional extensionMethodStyle As SymbolDisplayExtensionMethodStyle = Microsoft.CodeAnalysis.SymbolDisplayExtensionMethodStyle.Default, Optional parameterOptions As SymbolDisplayParameterOptions = Microsoft.CodeAnalysis.SymbolDisplayParameterOptions.None, Optional propertyStyle As SymbolDisplayPropertyStyle = Microsoft.CodeAnalysis.SymbolDisplayPropertyStyle.NameOnly, Optional localOptions As SymbolDisplayLocalOptions = Microsoft.CodeAnalysis.SymbolDisplayLocalOptions.None, Optional kindOptions As SymbolDisplayKindOptions = Microsoft.CodeAnalysis.SymbolDisplayKindOptions.None, Optional miscellaneousOptions As SymbolDisplayMiscellaneousOptions = Microsoft.CodeAnalysis.SymbolDisplayMiscellaneousOptions.None)

Parameters

globalNamespaceStyle
SymbolDisplayGlobalNamespaceStyle

The settings that determine how the global namespace is displayed.

typeQualificationStyle
SymbolDisplayTypeQualificationStyle

The settings that determine how types are qualified (e.g. Nested vs Containing.Nested vs Namespace.Containing.Nested).

genericsOptions
SymbolDisplayGenericsOptions

The settings that determine how generics (on types and methods) should be described (i.e. the level of detail).

memberOptions
SymbolDisplayMemberOptions

The settings that determine how fields, properties, events, and methods are displayed.

delegateStyle
SymbolDisplayDelegateStyle

The settings that determine how delegates are displayed (e.g. name vs full signature).

extensionMethodStyle
SymbolDisplayExtensionMethodStyle

The settings that determine how extension methods are displayed.

parameterOptions
SymbolDisplayParameterOptions

The settings that determine how parameters (of methods, properties/indexers, and delegates) are displayed.

propertyStyle
SymbolDisplayPropertyStyle

The settings that determine how properties are displayed. For example, "Prop" vs "Prop { get; set; }" in C# or "Prop" vs. "ReadOnly Prop" in Visual Basic.

localOptions
SymbolDisplayLocalOptions

The settings that determine how local variables are displayed.

kindOptions
SymbolDisplayKindOptions

The settings that determine which kind keywords should be included when displaying symbols.

miscellaneousOptions
SymbolDisplayMiscellaneousOptions

The settings that determine other characteristics of how symbols are displayed.

Applies to