|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IW > IWMTSLayer Interface > IWMTSLayer.Connect Method (ArcObjects .NET 10.4 SDK) | 
Connects to a WMTS Connection Name
[Visual Basic .NET] Public Function Connect ( _ ByVal pConnectionName As IName _ ) As Boolean
[C#] public bool Connect ( IName pConnectionName );
[C++]
HRESULT Connect(
  IName* pConnectionName,
  VARIANT_BOOL* successful
);
[C++]
Parameters pConnectionName [in]
pConnectionName is a parameter of type IName successful [out, retval] successful is a parameter of type VARIANT_BOOL