MonobjcMonobjc Documented Class Library
SetCompletionBlock Method (block)
NamespacesMonobjc.FoundationNSOperationSetCompletionBlock(Action)

Sets the block to execute when the operation has finished executing.

Original signature is '- (void)setCompletionBlock:(void (^)(void))block'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetCompletionBlock(
	Action block
)
Public Overridable Sub SetCompletionBlock ( _
	block As Action _
)
public:
virtual void SetCompletionBlock(
	Action^ block
)
Parameters
block (Action)
The block to be executed when the operation finishes. This method creates a copy of the specified block. The block itself should take no parameters and have no return value.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)