ScriptFunction.Invoke(Object, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invokes a method of the prototype-based object, passing in the specified arguments.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
System::Object ^ Invoke(System::Object ^ thisob, ... cli::array <System::Object ^> ^ args);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs)]
public object Invoke (object thisob, params object[] args);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs)>]
member this.Invoke : obj * obj[] -> obj
Public Function Invoke (thisob As Object, ParamArray args As Object()) As Object
Parameters
- thisob
- Object
The object that this method is acting upon.
- args
- Object[]
The arguments to pass to the method.
Returns
The result of the call to the method.
- Attributes
Remarks
Invoke often acts as a constructor or create instance call.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.