Udostępnij za pośrednictwem


DisableWarningDirectiveTriviaSyntax.WithDisableKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the DisableKeyword property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::DisableWarningDirectiveTriviaSyntax ^ WithDisableKeyword(Microsoft::CodeAnalysis::SyntaxToken disableKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.DisableWarningDirectiveTriviaSyntax WithDisableKeyword (Microsoft.CodeAnalysis.SyntaxToken disableKeyword);
member this.WithDisableKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.DisableWarningDirectiveTriviaSyntax
Public Function WithDisableKeyword (disableKeyword As SyntaxToken) As DisableWarningDirectiveTriviaSyntax

Parameters

disableKeyword
SyntaxToken

Returns

Applies to