Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
The IDsAdminNewObjPrimarySite::CreateNew method enables a primary object creation extension to create a temporary directory service object in Active Directory Domain Services. This object is then passed to each object creation extension in the extension's IDsAdminNewObjExt::SetObject method.
Syntax
HRESULT CreateNew(
[in] LPCWSTR pszName
);
Parameters
[in] pszName
Pointer to a WCHAR string that contains the name of the object to be created.
Return value
If the method succeeds, S_OK is returned. If the method fails, an OLE-defined error code is returned. This method fails if the calling extension is not a primary object creation extension.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Windows |
| Header | dsadmin.h |
| DLL | DSAdmin.dll |