MonobjcMonobjc Documented Class Library
SubdataWithRange Method (range)
NamespacesMonobjc.FoundationNSDataSubdataWithRange(NSRange)

Returns a data object containing a copy of the receiver’s bytes that fall within the limits specified by a given range.

Original signature is '- (NSData *)subdataWithRange:(NSRange)range'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSData SubdataWithRange(
	NSRange range
)
Public Overridable Function SubdataWithRange ( _
	range As NSRange _
) As NSData
public:
virtual NSData^ SubdataWithRange(
	NSRange range
)
Parameters
range (NSRange)
The range in the receiver from which to copy bytes. The range must not exceed the bounds of the receiver.
Return Value
A data object containing a copy of the receiver’s bytes that fall within the limits specified by range.
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)