MemberNotNullAttribute 构造函数

定义

重载

MemberNotNullAttribute(String)

使用字段或属性成员初始化特性。Initializes the attribute with a field or property member.

MemberNotNullAttribute(String[])

使用字段或属性成员列表初始化特性。Initializes the attribute with the list of field and property members.

MemberNotNullAttribute(String)

使用字段或属性成员初始化特性。Initializes the attribute with a field or property member.

public:
 MemberNotNullAttribute(System::String ^ member);
public MemberNotNullAttribute (string member);
new System.Diagnostics.CodeAnalysis.MemberNotNullAttribute : string -> System.Diagnostics.CodeAnalysis.MemberNotNullAttribute
Public Sub New (member As String)

参数

member
String

承诺为非 NULL 的字段或属性成员。The field or property member that is promised to be non-null.

适用于

MemberNotNullAttribute(String[])

使用字段或属性成员列表初始化特性。Initializes the attribute with the list of field and property members.

public:
 MemberNotNullAttribute(... cli::array <System::String ^> ^ members);
public MemberNotNullAttribute (params string[] members);
new System.Diagnostics.CodeAnalysis.MemberNotNullAttribute : string[] -> System.Diagnostics.CodeAnalysis.MemberNotNullAttribute
Public Sub New (ParamArray members As String())

参数

members
String[]

承诺为非 NULL 的字段和属性成员的列表。The list of field and property members that are promised to be non-null.

适用于