FieldAttribute Constructors
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
| Name | Description |
|---|---|
| FieldAttribute(String) |
Creates a new FieldAttribute instance with the specific symbol to bind. |
| FieldAttribute(String, String) |
Creates a new FieldAttribute instance with the specific symbol to bind. |
FieldAttribute(String)
Creates a new FieldAttribute instance with the specific symbol to bind.
public FieldAttribute(string symbolName);
public FieldAttribute(string? symbolName);
new Foundation.FieldAttribute : string -> Foundation.FieldAttribute
Parameters
- symbolName
- String
The unmanaged symbol that this field represents. Pass null to indicate that the field represents a null constant value.
Remarks
Used by Objective-C bindings to bind an unmanaged global variable as a static field.
Applies to
FieldAttribute(String, String)
Creates a new FieldAttribute instance with the specific symbol to bind.
public FieldAttribute(string symbolName, string libraryName);
public FieldAttribute(string? symbolName, string libraryName);
new Foundation.FieldAttribute : string * string -> Foundation.FieldAttribute
Parameters
- symbolName
- String
The unmanaged symbol that this field represents. Pass null to indicate that the field represents a null constant value.
- libraryName
- String
The library name to bind. Use "__Internal" for referencing symbols on libraries that are statically linked with your application.
Remarks
Used by Objective-C bindings to bind an unmanaged global variable as a static field.