Returns a file handle initialized with a file handle, using a specified deallocation policy.
Original signature is '- (id)initWithFileDescriptor:(int)fileDescriptor closeOnDealloc:(BOOL)flag'
Available in Mac OS X v10.0 and later.
Declaration Syntax
public virtual Id InitWithFileDescriptorCloseOnDealloc(
int fileDescriptor,
bool flag
)
Public Overridable Function InitWithFileDescriptorCloseOnDealloc ( _
fileDescriptor As Integer, _
flag As Boolean _
) As Id
public:
virtual Id^ InitWithFileDescriptorCloseOnDealloc(
int fileDescriptor,
bool flag
)
Parameters
- fileDescriptor (Int32)
- The POSIX file descriptor with which to initialize the file handle.
- flag (Boolean)
- YES if the file descriptor should be closed when the receiver is deallocated, otherwise NO.
Return Value
A file handle initialized with fileDescriptor with a deallocation policy specified by flag.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)
Assembly:
Monobjc.Foundation (Module: Monobjc.Foundation)