programming4us
programming4us
WEBSITE

Sharepoint 2013 : Visio Graphics Services (part 2) - Setting the Description of a Data Provider , Configuring Visio Performance Settings

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire

1. Display All Safe Data Providers


Scenario/Problem: You need to display all safe data providers configured for a Visio Graphics Service.


Solution: Use the Get-SPVisioSafeDataProvider cmdlet with the VisioServiceApplication parameter.

Using the Get-SPVisioSafeDataProvider cmdlet with the VisioServiceApplication parameter, as shown in Listing 3, displays all configured safe data providers.

Listing 3. Display All Safe Data Providers


Get-SPVisioSafeDataProvider -VisioServiceApplication "Visio Graphics
Service"


2. Get a Specific Safe Data Provider


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 4.

Listing 4. Assigning a Variable to a Specific Data Provider


$dataProvider =
Get-SPVisioSafeDataProvider -VisioServiceApplication "Visio Graphics
Service" -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.

3. Remove a Safe Data Provider


Scenario/Problem: You need to remove a safe data provider from Visio Graphics Services.


Solution: Use the Remove-SPVisioSafeDataProvider cmdlet.

The Remove-SPVisioSafeDataProvider cmdlet enables you to remove a specific safe data provider from Visio Graphics Services. This cmdlet uses both the DataProviderID and the DataProviderType to identify the safe data provider, as shown in Listing 5.

Listing 5. Example Script for Removing a Safe Data Provider


Remove-SPVisioSafeDataProvider -VisioServiceApplication "Visio
Graphics Service" -DataProviderID "Custom DB" -DataProviderType 6

4. Setting the Description of a Data Provider


Scenario/Problem: You need to enter a description for a safe provider entry.


Solution: Use the Set-SPVisioSafeDataProvider cmdlet.

The only purpose of the Set-SPVisioSafeDataProvider cmdlet is to add or change the description of a specific safe data provider for a Visio Graphics Service Application. This cmdlet uses both the DataProviderID and the DataProviderType to identify the safe data provider, as shown in Listing 6.

Listing 6. Setting the Description of a Safe Data Provider


Set-SPVisioSafeDataProvider -VisioServiceApplication "Visio Graphics
Service" -DataProviderID "Custom DB" -DataProviderType 6 -Description
"Custom DB Provider"

5. Configuring Visio Performance Settings


Scenario/Problem: You need to modify performance properties of Visio Graphics Services.


Solution: Use the Set-SPVisioPerformance cmdlet to configure the performance settings.

One of the unique characteristics of the Set-SPVisioPerformance cmdlet is that it requires all the parameters for configuring the Visio Graphics Service. Therefore, you must provide a value for each setting, as shown in Listing 7.

Listing 7. Configuring the Visio Performance Settings


Set-SPVisioPerformance -VisioServiceApplication "Visio Graphics
Service" -MaxDiagramCacheAge 30 -MaxDiagramSize 5 -MaxRecalcDuration
60 -MinDiagramCacheAge 10


The -MaxDiagramCacheAge parameter determines the maximum number of minutes a diagram should be cached. A longer cache age reduces memory and CPU utilization because the diagrams are not refreshed as often. The default value is 60 minutes, but the valid range of values for this parameter is 0 to 34,560 minutes (equating to 24 days).

The -MaxDiagramSize parameter determines the largest number of megabytes a Visio diagram can be to still be processed by the Visio Graphics Service. The default value is 5MB, but the valid range of values for this parameter is 1 to 50MB.

The -MaxRecalcDuration parameter determines the maximum number of seconds that the Visio Graphics Service should spend recalculating a diagram. The default is 60 seconds; the parameter range is 1 to 120 seconds. Any recalculations that take longer than this setting time out.

The -MinDiagramCacheAge parameter determines the minimum number of minutes a diagram should be cached. A longer cache age reduces memory and CPU utilization because the diagrams are not refreshed as often. The default value is 5 minutes, but the valid range of values for this parameter is 0 to 34,560 minutes (equating to 24 days).


Tip

To force a fixed cache duration, set the MaxDiagramCacheAge and MinDiagramCacheAge to the same values.




Tip

Use the Get-SPVisioSafeDataProvider to verify the description entry or modification.

Other  
  •  Sharepoint 2010 : Making Business Processes Work - Using the Provided Workflows (part 3) - Checking the Workflow Status
  •  Sharepoint 2010 : Making Business Processes Work - Using the Provided Workflows (part 2) - Starting the Workflow from the Item Workflow Page, Starting the Workflow from Office 2010 Client
  •  Sharepoint 2010 : Making Business Processes Work - Using the Provided Workflows (part 1) - Associating a Workflow with a List
  •  Sharepoint 2010 : Making Business Processes Work - Getting Started with Workflow, Workflow Terminology
  •   ASP.NET 4.0 : Data Source Components (part 10) - The XmlDataSource Class
  •   ASP.NET 4.0 : Data Source Components (part 9) - The SiteMapDataSource Class - Displaying Site Map Information
  •  ASP.NET 4.0 : Data Source Components (part 8) - The LinqDataSource Class -Lazy Loading and Prefetch, Updating Data
  •  ASP.NET 4.0 : Data Source Components (part 7) - The LinqDataSource Class - Selecting, Sorting, and Filtering Data
  •  ASP.NET 4.0 : Data Source Components (part 6) - The LinqDataSource Class - The Goal of LinqDataSource , Programming Interface of the LinqDataSource Control
  •  ASP.NET 4.0 : Data Source Components (part 5) - The ObjectDataSource Control - Setting Up for Paging , Updating and Deleting Data
  •  
    Top 10
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
    - Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
    - Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    programming4us programming4us
    Celebrity Style, Fashion Trends, Beauty and Makeup Tips.
    programming4us
     
     
    programming4us