Share via


DocumentationCommentId.CreateDeclarationId(ISymbol) Method

Definition

Creates an id string used by external documentation comment files to identify declarations of types, namespaces, methods, properties, etc.

public:
 static System::String ^ CreateDeclarationId(Microsoft::CodeAnalysis::ISymbol ^ symbol);
public static string CreateDeclarationId (Microsoft.CodeAnalysis.ISymbol symbol);
public static string? CreateDeclarationId (Microsoft.CodeAnalysis.ISymbol symbol);
static member CreateDeclarationId : Microsoft.CodeAnalysis.ISymbol -> string
Public Shared Function CreateDeclarationId (symbol As ISymbol) As String

Parameters

symbol
ISymbol

Returns

The documentation comment Id for this symbol, if it can be created. null if it cannot be.

Exceptions

If symbol is null.

Applies to