Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminNewObjPrimarySite::Commit

The Commit method writes the temporary object created by CreateNew to Active Directory™.

HRESULT Commit( );

Return Values

If the method is successful, the return value is S_OK.

If an error occurs, the return value is a COM error code. For more information, see Error Handling.

Remarks

CreateNew must be called before Commit.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsadmin.h.

See Also

IDsAdminNewObjPrimarySite