wclWiFiProfilesManagerSaveTemporaryProfile Method |
Saves a temporary profile to the profile store.
Namespace: wclWiFiAssembly: wclWiFiFramework (in wclWiFiFramework.dll) Version: 7.13.1.0 (7.13.1.0)
Syntaxpublic int SaveTemporaryProfile(
Guid IfaceId,
string ProfileName,
bool OverWrite,
wclWiFiTemporaryProfileFlag Flags
)
Public Function SaveTemporaryProfile (
IfaceId As Guid,
ProfileName As String,
OverWrite As Boolean,
Flags As wclWiFiTemporaryProfileFlag
) As Integer
public:
int SaveTemporaryProfile(
Guid IfaceId,
String^ ProfileName,
bool OverWrite,
wclWiFiTemporaryProfileFlag Flags
)
Parameters
- IfaceId Guid
- The ID of the interface.
- ProfileName String
- The name of the profile to be saved. Profile
names are case-sensitive.
- OverWrite Boolean
- Specifies whether this profile is overwriting
an existing profile. If this parameter is False and the profile
already exists, the existing profile will not be overwritten and an
error will be returned.
- Flags wclWiFiTemporaryProfileFlag
- The the flags to set on the profile. If the set is
empty then the profile is an all-user profile.
Return Value
Int32 If the function succeeds, the return value is
WCL_E_SUCCESS. If the function fails, the return value
may be one of the WCL return codes.
Remarks A temporary profile is the one passed to then
Connect method of the wclWiFiClient component
or generated by the discovery engine. A network connection can be
established using a temporary profile. Using this method saves the
temporary profile and associated user data to the profile
store.
A new profile is added at the top of the list after the group
policy profiles. A profile's position in the list is not changed if an
existing profile is overwritten.
See Also