MonobjcMonobjc Documented Class Library
DescriptorWithDescriptorTypeBytesLength Method (descriptorType, bytes, byteCount)
NamespacesMonobjc.FoundationNSAppleEventDescriptorDescriptorWithDescriptorTypeBytesLength(UInt32, IntPtr, NSUInteger)

Creates a descriptor initialized with the specified event type that stores the specified data (from a series of bytes).

Original signature is '+ (NSAppleEventDescriptor *)descriptorWithDescriptorType:(DescType)descriptorType bytes:(const void *)bytes length:(NSUInteger)byteCount'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSAppleEventDescriptor DescriptorWithDescriptorTypeBytesLength(
	uint descriptorType,
	IntPtr bytes,
	NSUInteger byteCount
)
Public Shared Function DescriptorWithDescriptorTypeBytesLength ( _
	descriptorType As UInteger, _
	bytes As IntPtr, _
	byteCount As NSUInteger _
) As NSAppleEventDescriptor
public:
static NSAppleEventDescriptor^ DescriptorWithDescriptorTypeBytesLength(
	unsigned int descriptorType, 
	IntPtr bytes, 
	NSUInteger byteCount
)
Parameters
descriptorType (UInt32)
The descriptor type to be set in the returned descriptor.
bytes (IntPtr)
The data, as a sequence of bytes, to be set in the returned descriptor.
byteCount (NSUInteger)
The length, in bytes, of the data to be set in the returned descriptor.
Return Value
A descriptor with the specified type and data, or nil if an error occurs.
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)