IVariableDeclaratorOperation.Initializer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Optional initializer of the variable.
public:
property Microsoft::CodeAnalysis::Operations::IVariableInitializerOperation ^ Initializer { Microsoft::CodeAnalysis::Operations::IVariableInitializerOperation ^ get(); };
public Microsoft.CodeAnalysis.Operations.IVariableInitializerOperation Initializer { get; }
public Microsoft.CodeAnalysis.Operations.IVariableInitializerOperation? Initializer { get; }
member this.Initializer : Microsoft.CodeAnalysis.Operations.IVariableInitializerOperation
Public ReadOnly Property Initializer As IVariableInitializerOperation
Property Value
Remarks
If this variable is in an IVariableDeclarationOperation, the initializer may be located in the parent operation. Call GetVariableInitializer(IVariableDeclaratorOperation) to check in all locations. It is only possible to have initializers in both locations in VB invalid code scenarios.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.