Click here to Skip to main content
15,891,976 members
Articles / Programming Languages / C#

Merging SAP PS with Microsoft Project

Rate me:
Please Sign up or sign in to vote.
4.83/5 (5 votes)
6 Feb 2011CPOL2 min read 32.2K   483   12  
Installation instructions for the CodeProject “Merging SAP PS with Microsoft Project”
//------------------------------------------------------------------------------
// 
//     This code was generated by a SAP. NET Connector Proxy Generator Version 2.0
//     Created at 8/29/2009
//     Created from Windows
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// 
//------------------------------------------------------------------------------
using System;
using System.Text;
using System.Collections;
using System.Runtime.InteropServices;
using System.Xml.Serialization;
using System.Web.Services;
using System.Web.Services.Description;
using System.Web.Services.Protocols;
using SAP.Connector;

namespace CSAPData
{
  /// <summary>
  /// A typed collection of BAPI_2002_PD_RANGE elements.
  /// </summary>
  [Serializable]
  public class BAPI_2002_PD_RANGETable : SAPTable 
  {
  
    /// <summary>
    /// Returns the element type BAPI_2002_PD_RANGE.
    /// </summary>
    /// <returns>The type BAPI_2002_PD_RANGE.</returns>
    public override Type GetElementType() 
    {
        return (typeof(BAPI_2002_PD_RANGE));
    }

    /// <summary>
    /// Creates an empty new row of type BAPI_2002_PD_RANGE.
    /// </summary>
    /// <returns>The newBAPI_2002_PD_RANGE.</returns>
    public override object CreateNewRow()
    { 
        return new BAPI_2002_PD_RANGE();
    }
     
    /// <summary>
    /// The indexer of the collection.
    /// </summary>
    public BAPI_2002_PD_RANGE this[int index] 
    {
        get 
        {
            return ((BAPI_2002_PD_RANGE)(List[index]));
        }
        set 
        {
            List[index] = value;
        }
    }
        
    /// <summary>
    /// Adds a BAPI_2002_PD_RANGE to the end of the collection.
    /// </summary>
    /// <param name="value">The BAPI_2002_PD_RANGE to be added to the end of the collection.</param>
    /// <returns>The index of the newBAPI_2002_PD_RANGE.</returns>
    public int Add(BAPI_2002_PD_RANGE value) 
    {
        return List.Add(value);
    }
        
    /// <summary>
    /// Inserts a BAPI_2002_PD_RANGE into the collection at the specified index.
    /// </summary>
    /// <param name="index">The zero-based index at which value should be inserted.</param>
    /// <param name="value">The BAPI_2002_PD_RANGE to insert.</param>
    public void Insert(int index, BAPI_2002_PD_RANGE value) 
    {
        List.Insert(index, value);
    }
        
    /// <summary>
    /// Searches for the specified BAPI_2002_PD_RANGE and returnes the zero-based index of the first occurrence in the collection.
    /// </summary>
    /// <param name="value">The BAPI_2002_PD_RANGE to locate in the collection.</param>
    /// <returns>The index of the object found or -1.</returns>
    public int IndexOf(BAPI_2002_PD_RANGE value) 
    {
        return List.IndexOf(value);
    }
        
    /// <summary>
    /// Determines wheter an element is in the collection.
    /// </summary>
    /// <param name="value">The BAPI_2002_PD_RANGE to locate in the collection.</param>
    /// <returns>True if found; else false.</returns>
    public bool Contains(BAPI_2002_PD_RANGE value) 
    {
        return List.Contains(value);
    }
        
    /// <summary>
    /// Removes the first occurrence of the specified BAPI_2002_PD_RANGE from the collection.
    /// </summary>
    /// <param name="value">The BAPI_2002_PD_RANGE to remove from the collection.</param>
    public void Remove(BAPI_2002_PD_RANGE value) 
    {
        List.Remove(value);
    }

    /// <summary>
    /// Copies the contents of the BAPI_2002_PD_RANGETable to the specified one-dimensional array starting at the specified index in the target array.
    /// </summary>
    /// <param name="array">The one-dimensional destination array.</param>           
    /// <param name="index">The zero-based index in array at which copying begins.</param>           
    public void CopyTo(BAPI_2002_PD_RANGE[] array, int index) 
    {
        List.CopyTo(array, index);
	}
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions