Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Sets the username component.
Syntax
HRESULT SetUserName(
[in] LPCWSTR pwzNewValue
);
Parameters
- pwzNewValue [in]
String variable that contains the new value, or NULL to remove the username component.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
SetUserName was introduced in Windows Internet Explorer 7.
Setting the username component invalidates Uri_PROPERTY_ABSOLUTE_URI and Uri_PROPERTY_AUTHORITY.
Requirements
Minimum supported client |
Windows XP with SP2 |
Minimum supported server |
Windows Server 2003 |
Product |
Internet Explorer 7 |
Header |
Urlmon.h |
IDL |
Urlmon.idl |
DLL |
Urlmon.dll |