You say you're using C#, but the code you have is C++ - unless you're intending to use unsafe C# code, which usually isn't necessary.
The C# code would be:
Code:
string part_name=@"D:\\rahul\\assignments\\extrude1.prt";
tag_t part= NULL_TAG;
int units=1;
int test = UF_PART_new(part_name, units, part);
For C++ code or unsafe C# code, I think all you're missing is that you either need:
Code:
int test = UF_PART_new(part_name, units, &part); //use return value
or:
Code:
UF_PART_new(part_name, units, &part); //ignore return value