Share via


IWMDRMProfile.ProviderURL

Windows Media Encoder SDK banner art

The ProviderURL property retrieves the URL to the license provider's Web site.

Syntax

string = IWMDRMProfile.ProviderURL;

Parameters

This property takes no parameters.

Property Value

A String containing the URL to the license provider's Web site.

Remarks

This property is read-only.

The license provider URL is the location of the license provider's Web site. This URL should not be confused with the license acquisition URL, which is the site where licenses are acquired.

Example Code

using WMEncoderLib;

try 
{
// Create a WMEncoder object.
  WMEncoder Encoder;
  Encoder = new WMEncoder();

// Create an IWMDRMContentAuthor object.
  IWMDRMContentAuthor DRM;
  DRM = Encoder.EncoderDRMContentAuthor;

// Retrieve the collection of DRM profiles.
  IWMDRMProfileCollection DRMProColl;
  DRMProColl = DRM.DRMProfileCollection;

// Create an IWMDRMProfile object and retrieve a profile.
  IWMDRMProfile DRMPro;
  DRMPro = DRMProColl.Item(1);

// Set the rest of the properties for the DRM profile.
  DRMPro.Description = "Replace with a description of this DRM profile";
  DRMPro.ProviderURL = "Replace with the license provider's URL";
  DRMPro.LicenseAcquisitionURL = "Replace with v7 license acquisition URL";
  DRMPro.Name = "Replace with a name for the DRM profile";
  DRMPro.V1LicenseAcquisitionURL = "Replace with v1 license acquisition URL";

// Add the individualization version as an attribute. 
// This attribute should be saved in the DRM profile. 
  IWMDRMAttributes ProAttr = DRMPro.Attributes;
  ProAttr.Add("SECURITYVERSION", "2.2");

}

catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also