wclWiFiProfilesManagerSetProfile Method |
The method sets the content of a specific profile.
Namespace: wclWiFiAssembly: wclWiFiFramework (in wclWiFiFramework.dll) Version: 7.13.1.0 (7.13.1.0)
Syntaxpublic int SetProfile(
Guid IfaceId,
wclWiFiProfileFlag Flags,
string ProfileXml,
bool Overwrite
)
Public Function SetProfile (
IfaceId As Guid,
Flags As wclWiFiProfileFlag,
ProfileXml As String,
Overwrite As Boolean
) As Integer
public:
int SetProfile(
Guid IfaceId,
wclWiFiProfileFlag Flags,
String^ ProfileXml,
bool Overwrite
)
Parameters
- IfaceId Guid
- The ID of the interface.
- Flags wclWiFiProfileFlag
- The flags to set on the profile.
- ProfileXml String
- Contains the XML representation of the
profile. The WLANProfile element is the root profile
element.
- 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.
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 The SetProfile method can be used to add a new
wireless LAN profile or replace an existing wireless LAN
profile.
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