コード例 #1
0
ファイル: OpcGroup.cs プロジェクト: dongdong-2009/Code_b2_git
        public void DeletePublic(bool bForce)
        {
            if (!this.state.Public)
            {
                Marshal.ThrowExceptionForHR(-2147467259);
            }
            IOPCServerPublicGroups ifServer = null;

            ifServer = (IOPCServerPublicGroups)this.ifServer;
            if (ifServer == null)
            {
                Marshal.ThrowExceptionForHR(-2147467262);
            }
            int handleServer = this.state.HandleServer;

            this.Remove(false);
            ifServer.RemovePublicGroup(handleServer, bForce);
            ifServer = null;
        }