IFPCVpnNetworkL2tpPptpSettings::PresharedKey property
Applies to: desktop apps only
The PresharedKey property gets or sets the preshared key for outgoing L2TP connections.
This property is read/write.
Syntax
HRESULT put_PresharedKey(
BSTR bstrPresharedKey
);
HRESULT get_PresharedKey(
BSTR *pbstrPresharedKey
);
' Data type: String
Property PresharedKey( _
ByVal bstrPresharedKey As BSTR, _
ByVal pbstrPresharedKey As BSTR _
) As String
Property value
String that specifies the preshared key for outgoing L2TP connections.
Error codes
These property methods return S_OK if the call is successful; otherwise, they return an error code.
Remarks
This property is read/write. By default, no string is defined.
The preshared key will be used only if the UsePresharedKey property is set to True (VARIANT_TRUE in C++).
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only) |
Version |
Forefront Threat Management Gateway (TMG) 2010 |
IDL |
Msfpccom.idl |
DLL |
Msfpccom.dll |
See also
Build date: 7/12/2010