<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add WMS Layer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-wms-layer/m-p/1397280#M11234</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How can I add username and password when I add WMS layer&lt;BR /&gt;I still get popup form to add username and password when I try to add new WMS layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    Dim serverConnection = New CIMInternetServerConnection With {
                                                   .URL = "SERVER",
                                                   .Password = "PASSWORD",
                                                   .User = "USERNAME"
                                               }


    Dim connection = New CIMWMSServiceConnection With {
    .ServerConnection = serverConnection
}

    Dim layerParams = New LayerCreationParams(connection)
    Await QueuedTask.Run(Sub()
                             Dim layer = LayerFactory.Instance.CreateLayer(Of FeatureLayer)(layerParams, MapView.Active.Map)
                         End Sub)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 14:57:02 GMT</pubDate>
    <dc:creator>SigurdurGesr</dc:creator>
    <dc:date>2024-03-18T14:57:02Z</dc:date>
    <item>
      <title>Add WMS Layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-wms-layer/m-p/1397280#M11234</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How can I add username and password when I add WMS layer&lt;BR /&gt;I still get popup form to add username and password when I try to add new WMS layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    Dim serverConnection = New CIMInternetServerConnection With {
                                                   .URL = "SERVER",
                                                   .Password = "PASSWORD",
                                                   .User = "USERNAME"
                                               }


    Dim connection = New CIMWMSServiceConnection With {
    .ServerConnection = serverConnection
}

    Dim layerParams = New LayerCreationParams(connection)
    Await QueuedTask.Run(Sub()
                             Dim layer = LayerFactory.Instance.CreateLayer(Of FeatureLayer)(layerParams, MapView.Active.Map)
                         End Sub)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 14:57:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-wms-layer/m-p/1397280#M11234</guid>
      <dc:creator>SigurdurGesr</dc:creator>
      <dc:date>2024-03-18T14:57:02Z</dc:date>
    </item>
  </channel>
</rss>

