MaybeNullWhenAttribute(Boolean) Constructor
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.
Initializes the attribute with the specified return value condition.
public:
MaybeNullWhenAttribute(bool returnValue);
C#
public MaybeNullWhenAttribute(bool returnValue);
new System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute : bool -> System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute
Public Sub New (returnValue As Boolean)
- returnValue
- Boolean
The return value condition. If the method returns this value, the associated parameter may be null
.
Toode | Versioonid |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: