The IMSAdminBase::SetData method sets a data item. If data with that identifier does not already exist, this method creates and inserts a data item into the list of data items of that type. If data with that identifier already exists, this method sets the new data value. Duplicate data identifers are not allowed even if the entries are of different user types or data types.
HRESULT SetData( METADATA_HANDLE hMDHandle, //metadata handle LPCWSTR pszMDPath, //path of the key relative to // hMDHandle PMETADATA_RECORD pmdrMDData //pointer to data );
Returns an HRESULT that contains one of the following values:
ERROR_ACCESS_DENIED | Access is denied. Either the open handle does not have read or write permission as needed, or the user does not have sufficient permissions to perform the operation. |
ERROR_INVALID_PARAMETER | The parameter is incorrect. |
ERROR_NOT_ENOUGH_MEMORY | There is not enough memory to complete the operation. |
ERROR_PATH_NOT_FOUND | The specified path is not found. |
ERROR_SUCCESS | The method succeeded. |
MD_ERROR_CANNOT_REMOVE_SECURE_ATTRIBUTE | Cannot set data to be not secure when a secure value exists. |
© 1997 by Microsoft Corporation. All rights reserved.
Comments:
file: /Techref/inet/iis/iis/htm/sdk/abba88gx.htm, 3KB, , updated: 2009/11/19 15:38, local time: 2025/10/2 13:02,
216.73.216.150,10-2-162-252:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/inet/iis/iis/htm/sdk/abba88gx.htm"> IMSAdminBase::SetData</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.