Interface ICsProperty
Model definition of a property in C#.
Inherited Members
Namespace: CodeFactory.WinVs.Models.CSharp
Assembly: CodeFactory.WinVs.dll
Syntax
public interface ICsProperty : ICsMember, ICsModel, IModelStatus, ISourceFiles, ICsAttributes, IDocumentation, IParent, ILookup
Properties
GetMethod
Provides access to the get method statement in the property. This will be null the property does not have a get statement.
Declaration
CsMethod GetMethod { get; }
Property Value
Type | Description |
---|---|
CsMethod |
GetSecurity
The security scope that is assigned to the get accessor. Make sure you check the HasGet to determine if the property supports get operations.
Declaration
[Obsolete("This will be removed in later editions of the SDK. Use the GetMethod property to access the get method details.", false)]
CsSecurity GetSecurity { get; }
Property Value
Type | Description |
---|---|
CsSecurity |
HasGet
Flag that determines if this property supports get accessor.
Declaration
bool HasGet { get; }
Property Value
Type | Description |
---|---|
bool |
HasInit
Flag that determines if this property supports init accessor.
Declaration
bool HasInit { get; }
Property Value
Type | Description |
---|---|
bool |
HasSet
Flag that determines if this property supports set accessor.
Declaration
bool HasSet { get; }
Property Value
Type | Description |
---|---|
bool |
InitMethod
Provides access to the init method statement in the property. This will be null the property does not have a init statement.
Declaration
CsMethod InitMethod { get; }
Property Value
Type | Description |
---|---|
CsMethod |
IsAbstract
Flag that determines if the property is implemented as an abstract property.
Declaration
bool IsAbstract { get; }
Property Value
Type | Description |
---|---|
bool |
IsOverride
Flag that determines if the property has been overridden.
Declaration
bool IsOverride { get; }
Property Value
Type | Description |
---|---|
bool |
IsSealed
Flag that determines if the property has been sealed.
Declaration
bool IsSealed { get; }
Property Value
Type | Description |
---|---|
bool |
IsStatic
Flag that determines if the property has been implemented as static.
Declaration
bool IsStatic { get; }
Property Value
Type | Description |
---|---|
bool |
IsVirtual
Flag that determines if the property is implemented as virtual.
Declaration
bool IsVirtual { get; }
Property Value
Type | Description |
---|---|
bool |
PropertyType
The source data type that is managed by this property.
Declaration
CsType PropertyType { get; }
Property Value
Type | Description |
---|---|
CsType |
SetMethod
Provides access to the set method statement in the property. This will be null the property does not have a set statement.
Declaration
CsMethod SetMethod { get; }
Property Value
Type | Description |
---|---|
CsMethod |
SetSecurity
The security scope that is assigned to the set accessor. Make sure you check the HasSet to determine if the property supports set operations.
Declaration
[Obsolete("This will be removed in later editions of the SDK. Use the SetMethod property to access the set method details.", false)]
CsSecurity SetSecurity { get; }
Property Value
Type | Description |
---|---|
CsSecurity |
Methods
LoadGetBodySyntaxAsync()
The source code syntax that is stored in the body of the property get. This will be null if was not loaded from source code.
Declaration
[Obsolete("This will be removed in later editions of the SDK. Use the GetMethod property to access the get method details.", false)]
Task<string> LoadGetBodySyntaxAsync()
Returns
Type | Description |
---|---|
Task<string> |
LoadSetBodySyntaxAsync()
The source code syntax that is stored in the body of the property get. This will be null if was not loaded from source code.
Declaration
[Obsolete("This will be removed in later editions of the SDK. Use the SetMethod property to access the set method details.", false)]
Task<string> LoadSetBodySyntaxAsync()
Returns
Type | Description |
---|---|
Task<string> |