共用方式為


DeclarationModifiers.WithIsConst(Boolean) 方法

定義

public:
 Microsoft::CodeAnalysis::Editing::DeclarationModifiers WithIsConst(bool isConst);
public Microsoft.CodeAnalysis.Editing.DeclarationModifiers WithIsConst (bool isConst);
member this.WithIsConst : bool -> Microsoft.CodeAnalysis.Editing.DeclarationModifiers
Public Function WithIsConst (isConst As Boolean) As DeclarationModifiers

參數

isConst
Boolean

傳回

適用於