SalFunctionalClass
Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.50 (5.0.0.0)
Provides the runtime base for SAL user-defined functional classes.
- C#
- VB.NET
public class SalFunctionalClass
Public Class SalFunctionalClass
Supports runtime type lookup and the generated multiple-inheritance representation.
Example:
using PPJ.Runtime;
public class Customer : SalFunctionalClass
{
}
// In application code:
// Customer customer = new Customer();
// string name = customer.GetTypeName(); // "Customer"
Constructors
SalFunctionalClass()
Initializes a functional-class instance without a derived-owner reference.
Fields
| Name | Type | Description | Value |
|---|---|---|---|
| _derived | Object | Stores the owning derived instance when this object represents an additional SAL base class. |
Methods
CreateFromString(className)
Resolves and creates a functional class by name.
| Parameter | Type | Description |
|---|---|---|
| className | String | The class name to resolve, giving precedence to the calling assembly. |
Returns: SalFunctionalClass. A new instance of the resolved class, or null when the name cannot be resolved.
The resolved type must derive from SalFunctionalClass and be constructible through a parameterless constructor. Constructor and activation failures propagate to the caller.
GetTypeName()
Returns the simple name of the runtime class.
Returns: String. The runtime type name without its namespace.
IsDerivedFrom(className)
Tests the SAL inheritance relationship with a class resolved by name.
| Parameter | Type | Description |
|---|---|---|
| className | String | The base class name to resolve, giving precedence to the calling assembly. |
Returns: Boolean. True when the runtime type is compatible with the resolved type through TypeManager; false if resolution or the inheritance test fails.
IsDerivedFrom(type)
Tests the SAL inheritance relationship with a runtime type.
| Parameter | Type | Description |
|---|---|---|
| type | Type | The type to test as a base class. |
Returns: Boolean. The result of the TypeManager inheritance check for this instance's runtime type.
IsValidClassName(className)
Determines whether a class name can be resolved.
| Parameter | Type | Description |
|---|---|---|
| className | String | The class name to resolve, giving precedence to the calling assembly. |
Returns: Boolean. True if the name resolves to a type; otherwise, false.
This method checks resolution only. It does not establish that the type can be constructed as a SalFunctionalClass.
Inherited By
| Name | Description |
|---|---|
| SalCoClass | Provides a SAL functional-class base for translated COM coclass declarations. |
| SalObject | Wraps an automation object and manages its interfaces, enumeration, and COM error state. |
| SalOleErrorInfo | Stores OLE error codes, descriptive text, and help information in SAL-compatible fields. |
| SalSafeArray | Wraps a managed array with SAL-compatible safe-array creation, bounds, and typed element access. |
| SalVariant | Stores an automation value and exposes SAL and CLR conversion operations. |
| SalToolTipManager | Manages Quick Objects tooltip registration and text for controls. |
| VisPoint | |
| VisRect | |
| VisSize |