Class MemberNotNullAttribute
Specifies that the method or property will ensure that the listed field and property members have not-null values.
Inherited Members
Namespace: System.Diagnostics.CodeAnalysis
Assembly: Couchbase.NetClient.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
public sealed class MemberNotNullAttribute : Attribute
Constructors
| Edit this page View SourceMemberNotNullAttribute(string)
Initializes the attribute with a field or property member.
Declaration
public MemberNotNullAttribute(string member)
Parameters
Type | Name | Description |
---|---|---|
string | member | The field or property member that is promised to be not-null. |
MemberNotNullAttribute(params string[])
Initializes the attribute with the list of field and property members.
Declaration
public MemberNotNullAttribute(params string[] members)
Parameters
Type | Name | Description |
---|---|---|
string[] | members | The list of field and property members that are promised to be not-null. |
Properties
| Edit this page View SourceMembers
Gets field or property member names.
Declaration
public string[] Members { get; }
Property Value
Type | Description |
---|---|
string[] |