Skip to content

Commit

Permalink
Fixed code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-litvinchik committed Jan 15, 2025
1 parent 21616da commit 9eea0b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/getting-started/licensing-and-subscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The following code snippet shows how to set a license from file:
string licensePath = "GroupDocs.Total.lic";

// Set license for all of the GroupDocs products
GroupDocs.Total.SetLicense(licensePath);
GroupDocs.Total.License.SetLicense(licensePath);

// Or set license for other GroupDocs products you are going to use
GroupDocs.Viewer.License licenseViewer = new GroupDocs.Viewer.License();
Expand All @@ -102,7 +102,7 @@ string licensePath = "GroupDocs.Total.lic";
using (FileStream licenseStream = File.OpenRead(licensePath))
{
// Set license for all of the GroupDocs products
GroupDocs.Total.SetLicense(licenseStream);
GroupDocs.Total.License.SetLicense(licenseStream);

// Or set license for other GroupDocs products you are going to use
GroupDocs.Viewer.License licenseViewer = new GroupDocs.Viewer.License();
Expand Down Expand Up @@ -162,7 +162,7 @@ The following code snippet shows how to use the embedded license:
{{< tab "C#" >}}
```csharp
// Set license for all of the GroupDocs products
GroupDocs.Total.SetLicense("GroupDocs.Total.lic");
GroupDocs.Total.License.SetLicense("GroupDocs.Total.lic");

// Or set license for other GroupDocs products you are going to use
GroupDocs.Viewer.License licenseViewer = new GroupDocs.Viewer.License();
Expand Down

0 comments on commit 9eea0b8

Please sign in to comment.