IProvHelper::DeleteProperty


Removes a key name/value pair from a provisioning transaction's property bag. Used by providers that interact with Microsoft. Provisioning Framework (MPF).

Syntax

C++
HRESULT DeleteProperty (
	BSTR bstrKey
);
Visual Basic
Sub DeleteProperty ( _
	bstrKey As String _
)

Parameters

bstrKey
Key name for the property object to delete.

Return Codes

Zero indicates success; a non-zero value represents an error. For a list of error codes, see MPF Errors.

C++ Example

BSTR bstrKey;
HRESULT hr = E_OUTOFMEMORY;

bstrKey = ::SysAllocString(L"key");

if(bstrKey)
	hr = m_pProvHelper->DeleteProperty(bstrKey);

::SysFreeString(bstrKey);

Visual Basic Example

Dim strKey

strKey = "key"
Call mProvHelper.DeleteProperty(strKey)

See Also

AddProperty, IProvHelper


Up Top of Page
) 1999-2002 Microsoft Corporation. All rights reserved.