[local] method

  • Thread starter Thread starter Chris Carter
  • Start date Start date
C

Chris Carter

Hi,

I am defining a COM interface in C#. The interface has the following method:


[local] HRESULT CopyContentToFileEx(
[in] PFIO_CONTEXT pFIOCopy,
[in] BOOL fDotStuffed,[in,unique] IMailMsgNotify *pNotify);

MSDN says: This method is marked with the [local] IDL attribute. This means
no proxy/stub code is generated for the header file, and the method can only
be called on an interface in the same apartment (i.e. no marshalling can
occur).

My question is, how do I mark this method as [local] in C#?

Thanks
 
Chris,
My question is, how do I mark this method as [local] in C#?

You can't and don't have to. Since this is a predefined system
interface you shouldn't include it in a typelib of your own anyway (be
sure to mark it as ComImport).


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top