Dynamicweb 8 Documentation
GetProductsByNameAndLanguage Method
Example 

Name of the product.
The product language ID.
Gets the products collection by name and language.
Syntax
'Declaration
 
Public Shared Function GetProductsByNameAndLanguage( _ 
   ByVal productName As String, _ 
   ByVal productLanguageID As String _ 
) As ProductCollection
public static ProductCollection GetProductsByNameAndLanguage( 
   string productName,
   string productLanguageID 
)

Parameters

productName
Name of the product.
productLanguageID
The product language ID.
Example
class MyPage : System.Web.UI.Page
{
   public void DoDelete(string productName, string productLanguageID)
   {
       ProductCollection products = Product.GetProductsByNameAndLanguage(productName, productLanguageID)
       foreach(Product product in products)
       {
          //TODO: insert your code here
       }
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Product Class
Product Members

Send Feedback