当前位置:编程学习 > C#/ASP.NET >>

請問 DispId 有什麼用途 ??

using System;
using System.Runtime.InteropServices;

namespace ACtrl
{
    [Guid("57F7B998-59A6-4959-A600-8836C058D088")]
    [TypeLibType(4160)]
    public interface IOut
    {
        [DispId(26)]
        string ActivityFile { get; set; }

請問 DispId(26) 是什麼???
是否 在呼叫 某些 function
但 這些 function 在 o那裡呀??

另外
我用 Reflector 查看 某個 DLL
裡面的 function 都沒有 code
只有 有 e.g.
[return: MarshalAs(UnmanagedType.BStr)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime), DispId(0x1b)]
public virtual extern string TestCommand([MarshalAs(UnmanagedType.BStr)] string bstrCommand, int lTimeout);
 
以上的 code 是在 call external function 嗎??
但這些 function 在那裡 載入???


thanks~~~


 
--------------------编程问答-------------------- This is the COM concept. You could refer to more material about COM. --------------------编程问答-------------------- 汗
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,