AnsweredAssumed Answered

IWorkspaceFactoryStatus Example

Question asked by mik1971 on Oct 25, 2015
Latest reply on Oct 26, 2015 by mik1971

Hi there,


I need an explanation about the interface IWorkspaceFactoryStatus.

I have an old project that I investigate an error (I described in another discussion).

But what is the difference


1. (in my old project):

IWorkspaceFactoryStatus pWorkspaceFactoryStatus = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass();


2. ESRI example

IWorkspaceFactoryStatus workspaceFactoryStatus = (IWorkspaceFactoryStatus)workspaceToCheck.WorkspaceFactory;

I see that example here (see the link)

IWorkspaceFactoryStatus Example


I know about Activator and singleton, I need an explanation WHY the number one (1. (in real project)) works.

10.3, Desktop, .Net 3.5


Any help would be highly appreciated.