GPCore - The Gibphone API

GPStateParameterlessMethodAttribute Constructor 

Creates a new GPStateParameterlessMethodAttribute, a Method Attribute that queries a function that doesnt have parameters for its state.

[Visual Basic]
Public Sub New( _
   ByVal String As String, _
   ByVal Type As Type, _
   ByVal Object As Object, _
   ByVal Boolean As Boolean, _
   ByVal String As String _
)
[C#]
public GPStateParameterlessMethodAttribute(
   String name,
   Type action,
   Object state,
   Boolean onstate,
   String methodname
);

Parameters

name
The user-readable name of the function.
action
The type of action to perform.
state
What will be the state when its true.
onstate
Whether to show when it is method returns state or when it doesn't.
methodname
The Name of the method to invoke to query for state.

Remarks

Note: to query from a property remember that the compiler creates methods for the get and set. For example to request the property Connected put "get_Connected" in methodname.

See Also

GPStateParameterlessMethodAttribute Class | GPCore.Attributes Namespace