コード例 #1
0
ファイル: Class1.cs プロジェクト: dgrapp1/WindowsSDK7-Samples
        void IWMSCacheProxy.FindCacheItem( string bstrOriginUrl , 
            out IWMSCacheItemDescriptor ppCacheItemDescriptor )
        {
            Debug.WriteLine("IWMSCacheProxy.FindCacheItem entered");
            ppCacheItemDescriptor = null;

            return;
        }
コード例 #2
0
ファイル: Class1.cs プロジェクト: dgrapp1/WindowsSDK7-Samples
 void IWMSCacheItemCollection.GetItem(int index, out IWMSCacheItemDescriptor cacheItem)
 {
     cacheItem = null;
     try
     {
         DataRow[] rows = DT.Select(strSel);
         if((index <0)||(index >= rows.Length))
         {
             throw new COMException("NO ERROR",1);
         }
         cacheItem = new IWMSCacheItemDescriptorImpl(this,rows[index]) as IWMSCacheItemDescriptor;
     }
     catch(Exception e)
     {
         Debug.WriteLine(e);
         throw new COMException("NO ERROR",1);
     }
 }