MonobjcMonobjc Documented Class Library
SetPowerError Method (power, error)
NamespacesMonobjc.CoreWLANCWInterfaceSetPowerError(Boolean, NSError%)

Sets the power state for the given CoreWLAN interface.

Original signature is '- (BOOL)setPower:(BOOL)power error:(NSError**)error '

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool SetPowerError(
	bool power,
	out NSError error
)
Public Overridable Function SetPowerError ( _
	power As Boolean, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool SetPowerError(
	bool power, 
	[OutAttribute] NSError^% error
)
Parameters
power (Boolean)
A BOOL value indicating the power state to which the CoreWLAN interface should be set. NO indicates the "OFF" state.
error (NSError%)
An NSError object passed by reference, which will be populated with error code and error description if an error occurs during the execution of the method. This parameter is optional and can be passed as nil.
Return Value
A BOOL value which will indicate whether or not a failure occured. YES indicates no error occured.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.CoreWLAN (Module: Monobjc.CoreWLAN)