NEW YORK -- Tim Lincecum's locker was stocked with his jersey and cap for the 2008 All-Star Game on Tuesday night.

But as the rest of the players made their way into the National League clubhouse in Yankee Stadium, Lincecum remained absent.

The right-handed San Francisco pitcher was hospitalized and diagnosed with the flu and dehydration at New York Presbyterian Hospital and missed his first All-Star Game. Lincecum had not arrived at the stadium when his teammates took the field for batting practice at 3 p.m. PT, and Rockies pitching coach Bob Apodaca confirmed that he would not be available to throw.

"He's sick," Apodaca said. "He has some kind of stomach flu. He went to the hospital last night. He's not available at all."

Major League Baseball released a statement on behalf of the Giants shortly before game time confirming Lincecum would not be attending the game.

Lincecum's Giants teammate and fellow All-Star Brian Wilson said he hadn't spoken to Lincecum, whose phone was off.

"I think he caught the flu, so I think he's just getting some medicine for it," Wilson said.

While he could not attend the game, Lincecum was released from the hospital to rest.

His absence left the National League pitching staff one man short and manager Clint Hurdle of the Rockies with fewer options for the mound. The 24-year-old last pitched Sunday when he threw eight innings of one-run ball against the Cubs, meaning he probably would have been available for only one inning at best for the All-Star Game.

In his second year with the Giants, Lincecum is 11-2 with a 2.57 ERA through 20 appearances. He leads the Major Leagues with 135 strikeouts.