SPListDataSource.SetProperty Method
Sets a property about the external data source.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub SetProperty ( _
key As String, _
value As String _
)
'Usage
Dim instance As SPListDataSource
Dim key As String
Dim value As String
instance.SetProperty(key, value)
public void SetProperty(
string key,
string value
)
Parameters
key
Type: System.StringThe name of the property to set.
value
Type: System.StringThe value of the property.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The list of safe external system properties does not contain the specified property. |
Remarks
This method sets the value specified by the value parameter to the property about the external system specified by the key parameter. Valid property names are LobSystemInstance, EntityNamespace, Entity, and SpecificFinder.