NullabilityInfoContext.Create Method   
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.
Overloads
| Create(EventInfo) | Populates a NullabilityInfo for the given EventInfo. If the  | 
| Create(FieldInfo) | Populates a NullabilityInfo for the given FieldInfo. If the  | 
| Create(ParameterInfo) | Populates a NullabilityInfo for the given ParameterInfo. If the  | 
| Create(PropertyInfo) | Populates a NullabilityInfo for the given PropertyInfo. If the  | 
Create(EventInfo)
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
Populates a NullabilityInfo for the given EventInfo. If the nullablePublicOnly feature is set for an assembly, like it does in the .NET SDK, the private and/or internal member's nullability attributes are omitted, and the API will return the Unknown state.
public:
 System::Reflection::NullabilityInfo ^ Create(System::Reflection::EventInfo ^ eventInfo);public System.Reflection.NullabilityInfo Create(System.Reflection.EventInfo eventInfo);member this.Create : System.Reflection.EventInfo -> System.Reflection.NullabilityInfoPublic Function Create (eventInfo As EventInfo) As NullabilityInfoParameters
- eventInfo
- EventInfo
The event for which to populate nullability information.
Returns
A NullabilityInfo instance.
Exceptions
eventInfo is null.
Applies to
Create(FieldInfo)
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
Populates a NullabilityInfo for the given FieldInfo. If the nullablePublicOnly feature is set for an assembly, like it does in the .NET SDK, the private and/or internal member's nullability attributes are omitted, and the API will return the Unknown state.
public:
 System::Reflection::NullabilityInfo ^ Create(System::Reflection::FieldInfo ^ fieldInfo);public System.Reflection.NullabilityInfo Create(System.Reflection.FieldInfo fieldInfo);member this.Create : System.Reflection.FieldInfo -> System.Reflection.NullabilityInfoPublic Function Create (fieldInfo As FieldInfo) As NullabilityInfoParameters
- fieldInfo
- FieldInfo
The field for which to populate the nullability information.
Returns
A NullabilityInfo instance.
Exceptions
fieldInfo is null.
Applies to
Create(ParameterInfo)
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
Populates a NullabilityInfo for the given ParameterInfo. If the nullablePublicOnly feature is set for an assembly, like it does in the .NET SDK, the private and/or internal member's nullability attributes are omitted, and the API will return the Unknown state.
public:
 System::Reflection::NullabilityInfo ^ Create(System::Reflection::ParameterInfo ^ parameterInfo);public System.Reflection.NullabilityInfo Create(System.Reflection.ParameterInfo parameterInfo);member this.Create : System.Reflection.ParameterInfo -> System.Reflection.NullabilityInfoPublic Function Create (parameterInfo As ParameterInfo) As NullabilityInfoParameters
- parameterInfo
- ParameterInfo
The parameter for which to populate the nullability information.
Returns
A NullabilityInfo instance.
Exceptions
parameterInfo is null.
Applies to
Create(PropertyInfo)
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
- Source:
- NullabilityInfoContext.cs
Populates a NullabilityInfo for the given PropertyInfo. If the nullablePublicOnly feature is set for an assembly, like it does in the .NET SDK, the private and/or internal member's nullability attributes are omitted, and the API will return the Unknown state.
public:
 System::Reflection::NullabilityInfo ^ Create(System::Reflection::PropertyInfo ^ propertyInfo);public System.Reflection.NullabilityInfo Create(System.Reflection.PropertyInfo propertyInfo);member this.Create : System.Reflection.PropertyInfo -> System.Reflection.NullabilityInfoPublic Function Create (propertyInfo As PropertyInfo) As NullabilityInfoParameters
- propertyInfo
- PropertyInfo
The property for which to populate the nullability information.
Returns
A NullabilityInfo instance.
Exceptions
propertyInfo is null.