共用方式為


TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>.Optional 方法

定義

多載

Optional(KnownSymbolType)
Optional(TSymbolType)

Optional(KnownSymbolType)

protected public:
 bool Optional(Microsoft::AspNetCore::Razor::Tokenizer::Symbols::KnownSymbolType type);
protected internal bool Optional (Microsoft.AspNetCore.Razor.Tokenizer.Symbols.KnownSymbolType type);
member this.Optional : Microsoft.AspNetCore.Razor.Tokenizer.Symbols.KnownSymbolType -> bool
Protected Friend Function Optional (type As KnownSymbolType) As Boolean

參數

傳回

適用於

Optional(TSymbolType)

protected public:
 bool Optional(TSymbolType type);
protected internal bool Optional (TSymbolType type);
member this.Optional : 'SymbolType -> bool
Protected Friend Function Optional (type As TSymbolType) As Boolean

參數

type
TSymbolType

傳回

適用於