Ejemplo n.º 1
0
        internal void ChangeOptionalFeature(string distinguishedName, bool enable, string featureId)
        {
            this.Init();
            ChangeOptionalFeatureRequest changeOptionalFeatureRequest = new ChangeOptionalFeatureRequest();

            changeOptionalFeatureRequest.DistinguishedName = distinguishedName;
            changeOptionalFeatureRequest.Enable            = enable;
            changeOptionalFeatureRequest.FeatureId         = new Guid(featureId);
            this._topoMgmt.ChangeOptionalFeature(this._sessionHandle, changeOptionalFeatureRequest);
        }
        ChangeOptionalFeatureResponse Microsoft.ActiveDirectory.Management.IADTopologyManagement.ChangeOptionalFeature(ADSessionHandle handle, ChangeOptionalFeatureRequest request)
        {
            ChangeOptionalFeatureResponse changeOptionalFeatureResponse = null;
            ADDirectoryServiceConnection  internalHandle = this.GetInternalHandle(handle);

            if (internalHandle != null)
            {
                changeOptionalFeatureResponse = internalHandle.ChangeOptionalFeature(request);
            }
            return(changeOptionalFeatureResponse);
        }