Export (0) Print
Expand All

DynamicScriptObject Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Enables calls from a XAML browser application (XBAP) to the HTML window that hosts the application. 

System.Object
  System.Dynamic.DynamicObject
    System.Windows.Interop.DynamicScriptObject

Namespace:  System.Windows.Interop
Assembly:  PresentationFramework (in PresentationFramework.dll)

public sealed class DynamicScriptObject : DynamicObject

The DynamicScriptObject type exposes the following members.

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDynamicMemberNamesReturns the enumeration of all dynamic member names. (Inherited from DynamicObject.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetMetaObjectProvides a DynamicMetaObject that dispatches to the dynamic virtual methods. The object can be encapsulated inside another DynamicMetaObject to provide custom behavior for individual actions. This method supports the Dynamic Language Runtime infrastructure for language implementers and it is not intended to be used directly from your code. (Inherited from DynamicObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringInfrastructure. Attempts to convert the script object to a string representation. (Overrides Object.ToString().)
Public methodTryBinaryOperationProvides implementation for binary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication. (Inherited from DynamicObject.)
Public methodTryConvertProvides implementation for type conversion operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another. (Inherited from DynamicObject.)
Public methodTryCreateInstanceProvides the implementation for operations that initialize a new instance of a dynamic object. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject.)
Public methodTryDeleteIndexProvides the implementation for operations that delete an object by index. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject.)
Public methodTryDeleteMemberProvides the implementation for operations that delete an object member. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject.)
Public methodTryGetIndexInfrastructure. Gets an indexed value from the script object by using the first index value from the indexes collection. (Overrides DynamicObject.TryGetIndex(GetIndexBinder, Object[], Object).)
Public methodTryGetMemberInfrastructure. Gets an member value from the script object. (Overrides DynamicObject.TryGetMember(GetMemberBinder, Object).)
Public methodTryInvokeInfrastructure. Calls the default script method. (Overrides DynamicObject.TryInvoke(InvokeBinder, Object[], Object).)
Public methodTryInvokeMemberCalls a method on the script object. (Overrides DynamicObject.TryInvokeMember(InvokeMemberBinder, Object[], Object).)
Public methodTrySetIndexInfrastructure. Sets a member on the script object by using the first index specified in the indexes collection. (Overrides DynamicObject.TrySetIndex(SetIndexBinder, Object[], Object).)
Public methodTrySetMemberInfrastructure. Sets a member on the script object to the specified value. (Overrides DynamicObject.TrySetMember(SetMemberBinder, Object).)
Public methodTryUnaryOperationProvides implementation for unary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as negation, increment, or decrement. (Inherited from DynamicObject.)
Top

Instances of this class are exposed through the HostScript property of BrowserInteropHelper.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft