Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
QuestionRS232 Com Port Control Pin
Billy Whizz27-Feb-07 3:33
Billy Whizz27-Feb-07 3:33 
AnswerRe: RS232 Com Port Control Pin
Stefan Troschuetz27-Feb-07 4:36
Stefan Troschuetz27-Feb-07 4:36 
GeneralRe: RS232 Com Port Control Pin
Billy Whizz27-Feb-07 20:37
Billy Whizz27-Feb-07 20:37 
GeneralRe: RS232 Com Port Control Pin
Luc Pattyn28-Feb-07 3:32
sitebuilderLuc Pattyn28-Feb-07 3:32 
QuestionGetting Child nodes count of an element Pin
madhusri27-Feb-07 3:31
madhusri27-Feb-07 3:31 
AnswerRe: Getting Child nodes count of an element Pin
Ennis Ray Lynch, Jr.27-Feb-07 3:46
Ennis Ray Lynch, Jr.27-Feb-07 3:46 
Questionaccesing form control values in class Pin
balakpn27-Feb-07 3:22
balakpn27-Feb-07 3:22 
QuestionC# CLR Problems... Pin
Illegal Operation27-Feb-07 3:04
Illegal Operation27-Feb-07 3:04 
Please Help!

I have created a class:

using System;
using System.Data.SqlTypes;
using System.IO;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Server;

namespace mySQL
{
public class SQLCLRIO
{
public static void WriteToFile(String content, String filename)
{
SqlPipe sqlP = SqlContext.Pipe();

try
{
File.WriteAllText(filename, content + "\n");
}
catch (Exception ex)
{
sqlP.Send("Error writing to file : " + ex.Message);
}
}
}
}


The problem is when I try to compile it into a dll I get the following.

"Microsoft.SqlServer.Server.SqlContext.Pipe' is a 'property' but is used like a 'method"

Illegal Operation

Making Computer Software Talk

AnswerRe: C# CLR Problems... Pin
kubben27-Feb-07 3:11
kubben27-Feb-07 3:11 
AnswerRe: C# CLR Problems... Pin
Guffa27-Feb-07 3:12
Guffa27-Feb-07 3:12 
Questionmoving ellipse Pin
t_nedelchev27-Feb-07 2:54
t_nedelchev27-Feb-07 2:54 
AnswerRe: moving ellipse Pin
Luc Pattyn28-Feb-07 3:36
sitebuilderLuc Pattyn28-Feb-07 3:36 
GeneralRe: moving ellipse Pin
t_nedelchev28-Feb-07 21:07
t_nedelchev28-Feb-07 21:07 
GeneralRe: moving ellipse Pin
Luc Pattyn1-Mar-07 0:52
sitebuilderLuc Pattyn1-Mar-07 0:52 
GeneralRe: moving ellipse Pin
t_nedelchev1-Mar-07 2:41
t_nedelchev1-Mar-07 2:41 
GeneralRe: moving ellipse Pin
Luc Pattyn1-Mar-07 7:18
sitebuilderLuc Pattyn1-Mar-07 7:18 
GeneralRe: moving ellipse Pin
t_nedelchev1-Mar-07 7:35
t_nedelchev1-Mar-07 7:35 
GeneralRe: moving ellipse Pin
Luc Pattyn1-Mar-07 7:52
sitebuilderLuc Pattyn1-Mar-07 7:52 
GeneralRe: moving ellipse Pin
t_nedelchev1-Mar-07 8:01
t_nedelchev1-Mar-07 8:01 
GeneralRe: moving ellipse Pin
Luc Pattyn1-Mar-07 8:25
sitebuilderLuc Pattyn1-Mar-07 8:25 
QuestionImages on form are not seen some times Pin
Sirisha.Konda27-Feb-07 2:40
Sirisha.Konda27-Feb-07 2:40 
AnswerRe: Images on form are not seen some times Pin
KeithF27-Feb-07 2:52
KeithF27-Feb-07 2:52 
GeneralRe: Images on form are not seen some times Pin
Martin#27-Feb-07 3:15
Martin#27-Feb-07 3:15 
GeneralRe: Images on form are not seen some times Pin
KeithF27-Feb-07 3:17
KeithF27-Feb-07 3:17 
GeneralRe: Images on form are not seen some times Pin
Martin#27-Feb-07 3:26
Martin#27-Feb-07 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.