locked
How to implement C# component interface in javascript? RRS feed

  • Question

  • Hi

    I want to implement ITableEntity interface which in Azure.storage.winmd.

    public interface ITableEntity
    {
        // Methods
        void ReadEntity([In] IMap<string, EntityProperty> properties, [In] OperationContext operationContext);
        IMap<string, EntityProperty> WriteEntity([In] OperationContext operationContext);
    
        // Properties
        string ETag { get; [param: In] set; }
        string PartitionKey { get; [param: In] set; }
        string RowKey { get; [param: In] set; }
        DateTime Timestamp { get; [param: In] set; }
    }
    
     
    
     
    

    How to implement it in javascript?

    Thanks

     
    Sunday, May 26, 2013 8:48 AM

Answers

  • Hi,

    if you want to implement this interface in JavaScript because you want to pass the object to a WinRT Component, you're probably out of luck.

    Have a look at this forum post for more information on that topic. 

    It basically says that JavaScript cannot create new implementations of WinRT interfaces.

    Friday, May 31, 2013 12:34 PM

All replies