共用方式為


DeclarationModifiers.WithIsRequired(Boolean) Method

Definition

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

Parameters

isRequired
Boolean

Returns

Applies to