Click or drag to resize

CodeMethod Class

Angiver opsætningen af et kald til en metode i et .Net assembly. Parametre (både ind- og udgående) kan enten være statiske/faste værdier eller hentes fra et dataobjekt.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelCodeMethod

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class CodeMethod : ICloneable, IObjectWithId

The CodeMethod type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyActionId
Public propertyClass
Navn på klassen som rummer metoden.
Public propertyClassFullName
Contains class name and it's namespace (example: Omada.API.TestClass)
Public propertyCodeAssemblyId
Angiver det code assembly som rummer selve .net metoden.
Public propertyMethod
Name of the .net method.
Public propertyMethodFullName
Contains class name, namespace and method name (example: Omada.API.TestClass.SomeMethod)
Public propertyNamespace
Navn på namespace som klassen befinder sig i.
Public propertyOwner
Public propertyParameters
Top
Methods
  NameDescription
Public methodClone
Shallow copy Owner, replaced in CodeMethodAction.Clone()
Public methodGetChangeMessage
Check if there is any change in class or method or parameters (if checkParameters == true) of the code method against its codeAssembly if there is any change, UserMessages.Count > 0
Public methodGetParamChangeMessages
Pre: parameterInfos must be a valid ParameterInfo array list Check whether there is any change in the method parameters: - new parameter(s) being added, and/or - dataType or direction changed and/or - exist parameter(s) removed UserMessages.Count > 0
Public methodGetParamDataTypesStr
Add all parameters data type ids of the method to the returning string
Public methodStatic memberGetParameterInfoDataType
Public methodStatic memberGetParameterInfoDirection
returns Direction.Out, if parameterInfo is an out parameter type returns Direction.In/Out, if parameterInfo is a reference parameter type returns Direction.In, if parameterInfo is neither of the above types
Public methodStatic memberGetParameterInfoString
Returns a commasep. string with the parameters of a method. The parametersInfos can be obtained using MethodInfo.GetParameters().
Public methodPassesFilter
Public methodToString (Overrides ObjectToString.)
Public methodValidateParameters
Validates parameters info (from method info) against the code method parameters of the code method
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIObjectWithId.GetId
Top
See Also