NetOffice icon indicating copy to clipboard operation
NetOffice copied to clipboard

NetOffice.OutlookApi.NameSpace.RemoveStore() function not found

Open ryangriggs opened this issue 2 years ago • 3 comments

NetVersion 1.8.1 I see the function declaration in https://github.com/NetOfficeFw/NetOffice/blob/603f7f5fd010f0055570a460e0cdc63b6ef60425/Source/Outlook/DispatchInterfaces/_NameSpace.cs#L616

But it yields the error: Severity Code Description Project File Line Suppression State Error CS1061 '_NameSpace' does not contain a definition for 'removeStore' and no accessible extension method 'removeStore' accepting a first argument of type '_NameSpace' could be found (are you missing a using directive or an assembly reference?) test D:\My Documents\Programming\test\V1\test\Form1.cs 52 Active

How to fix this?

Thanks!

ryangriggs avatar Oct 28 '21 03:10 ryangriggs

Hi @ryangriggs, please fix the problems in your source code: https://stackoverflow.com/search?q=CS1061

jozefizso avatar Oct 28 '21 07:10 jozefizso

Hi, I'm reopening this to let you know that the RemoveStore function works if typed manually, but doesn't appear in the Autocomplete list. Please refer to this screenshot video: https://youtu.be/1KROZBTRBdI AddStore works as expected, but RemoveStore does not.

Thanks for your fast reply, and for any additional info. The NetOffice project is very helpful and I appreciate your work on this project.

ryangriggs avatar Oct 28 '21 14:10 ryangriggs

I see the problem now, the standard Visual Studio IntelliSense will not display the method because it is marked as [EditorBrowsable(EditorBrowsableState.Never)]. It looks like an error as the NameSpace.RemoveStore() method exists in the MS Outlook public API.

When using ReSharper it will display the method as it is public and it can be called. image

jozefizso avatar Oct 28 '21 14:10 jozefizso

Released in v1.9.0

jozefizso avatar Sep 23 '22 18:09 jozefizso