Свойство | Тип | Описание | |
---|---|---|---|
_resourceId | int | ||
_typeName | string |
Свойство | Тип | Описание | |
---|---|---|---|
IPhpConvertible | Convert.NumberInfo | ||
IPhpConvertible | bool | ||
IPhpConvertible | double | ||
IPhpConvertible | long | ||
IPhpConvertible | object | ||
IPhpConvertible | string | ||
PhpResource | Pchp.Core | ||
RegisterInternalInstance | int |
Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Disposes the resource.
|
|
Dispose ( bool disposing ) : void |
Cleans-up the resource. When disposing non-deterministically, only unmanaged resources should be freed. FreeUnmanaged |
|
PhpResource ( string resourceTypeName ) : Pchp.Core |
Create a new instance of a given Type and Name. The instance Id is auto-incrementing starting from 1.
|
|
ToString ( ) : string |
Returns a string that represents the current PhpResource.
|
Метод | Описание | |
---|---|---|
FreeManaged ( ) : void |
Override this virtual method in your descendants to perform cleanup of Managed resources - those having a Finalizer of their own. Note that when Disposing explicitly, both FreeManaged and FreeUnmanaged are called. |
|
FreeUnmanaged ( ) : void |
Override this virtual method to cleanup the contained unmanaged objects. Note that when Dispose(false) is called from the Finalizer, the order of finalization is random. In other words, contained managed objects may have been already finalized - don't reference them. |
|
PhpResource ( int resourceId, string resourceTypeName ) : Pchp.Core |
Create a new instance with the given Id.
|
Метод | Описание | |
---|---|---|
IPhpConvertible ( PhpNumber &number ) : Convert.NumberInfo | ||
IPhpConvertible ( ) : bool | ||
IPhpConvertible ( ) : double | ||
IPhpConvertible ( ) : long | ||
IPhpConvertible ( ) : object | ||
IPhpConvertible ( |
||
PhpResource ( ) : Pchp.Core |
Creates a new invalid resource.
|
|
RegisterInternalInstance ( ) : int |
Allocate a unique identifier for a resource. Internal resources are given even numbers while resources allocated by extensions get odd numbers to minimize the communication between internal and external resource managers. |
public Dispose ( bool disposing ) : void | ||
disposing | bool | Whether the resource is disposed deterministically. |
Результат | void |
protected PhpResource ( int resourceId, string resourceTypeName ) : Pchp.Core | ||
resourceId | int | Unique resource identifier (odd for external resources). |
resourceTypeName | string | The type to be reported to use when dumping a resource. |
Результат | Pchp.Core |
public PhpResource ( string resourceTypeName ) : Pchp.Core | ||
resourceTypeName | string | The type to be reported to use when dumping a resource. |
Результат | Pchp.Core |