February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to obtain a specific safe data provider reference.
Solution: Use the Get-SPVisioSafeDataProvider cmdlet.
The Get-SPVisioSafeDataProvider cmdlet can be used to retrieve a specific safe data provider using the VisioServiceApplication and data provider parameters, as shown in Listing 24.4.
Listing 24.4. Assigning a Variable to a Specific Data Provider
$dataProvider =Get-SPVisioSafeDataProvider -VisioServiceApplication "Visio GraphicsService" -DataProviderID "Custom DB" -DataProviderType 6
This cmdlet uses both the DataProviderID and the DataProviderType to identify the safe data provider. If one is excluded, no results are returned.
Read now
Unlock full access